eric6/E5Gui/E5PathPickerDialog.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
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 = ""

eric ide

mercurial