149 dlg.setDefaultDirectory(defaultDirectory) |
149 dlg.setDefaultDirectory(defaultDirectory) |
150 if filters is not None and len(filters) > 0: |
150 if filters is not None and len(filters) > 0: |
151 dlg.setPickerFilters(";;".join(filters)) |
151 dlg.setPickerFilters(";;".join(filters)) |
152 |
152 |
153 # step 2: show the dialog and get the result |
153 # step 2: show the dialog and get the result |
154 if dlg.exec_() == QDialog.Accepted: |
154 if dlg.exec() == QDialog.Accepted: |
155 ok = True |
155 ok = True |
156 path = dlg.getPath().strip() |
156 path = dlg.getPath().strip() |
157 else: |
157 else: |
158 ok = False |
158 ok = False |
159 path = "" |
159 path = "" |