Changeset 01f3d34a02f0973bb81905a9ffaaf758c27b75a2
- Timestamp:
- 01/06/12 11:54:02 (5 months ago)
- Children:
- 672fd040f6413d28c4cfa7831376d377abc57bc9
- Parents:
- 04e2462eaa517a9e3bc8757e8f60409991cce202
- git-committer:
- Luper Rouch <luper.rouch@…> (01/06/12 11:54:02)
- Location:
- pyflu/pyflu
- Files:
-
- 2 edited
-
__init__.py (modified) (1 diff)
-
qt/util.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyflu/pyflu/__init__.py
r08bf1a4 r01f3d34 5 5 6 6 def version(): 7 return "0.9. 2"7 return "0.9.3" 8 8 -
pyflu/pyflu/qt/util.py
r2ea9020 r01f3d34 71 71 72 72 def get_open_path(parent, settings_path=None, filter=None, 73 default_dir=None, default_filename=None ):73 default_dir=None, default_filename=None, select_directory=False): 74 74 """ 75 75 Shows an 'open file' dialog and returns the selected path. … … 84 84 85 85 If *default_filename* is given, select this file. 86 87 If *select_directory* is ``True``, a directory is selected instead of a 88 file. 86 89 87 90 Return None if the user canceled. … … 99 102 dlg = QFileDialog(parent) 100 103 dlg.setWindowTitle(parent.trUtf8("Open")) 101 dlg.setFileMode(QFileDialog.ExistingFile) 104 if select_directory: 105 dlg.setFileMode(QFileDialog.Directory) 106 else: 107 dlg.setFileMode(QFileDialog.ExistingFile) 102 108 dlg.setAcceptMode(QFileDialog.AcceptOpen) 103 109 dlg.setDirectory(default_dir)
Note: See TracChangeset
for help on using the changeset viewer.
