Changeset 6280464 in sasview for src/sas/qtgui/MainWindow/DataExplorer.py
- Timestamp:
- Nov 3, 2017 10:58:39 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 412e069e
- Parents:
- 304d082
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/DataExplorer.py
r304d082 r6280464 218 218 'options' : QtWidgets.QFileDialog.DontUseNativeDialog 219 219 } 220 filename = str(QtWidgets.QFileDialog.getOpenFileName(**kwargs))220 filename = QtWidgets.QFileDialog.getOpenFileName(**kwargs)[0] 221 221 if filename: 222 222 load_thread = threads.deferToThread(self.readProject, filename) … … 582 582 # Show the plot 583 583 new_plot.show() 584 new_plot.canvas.draw() 584 585 585 586 # Update the active chart list … … 628 629 paths = QtWidgets.QFileDialog.getOpenFileNames(self, "Choose a file", "", 629 630 wlist, None, QtWidgets.QFileDialog.DontUseNativeDialog)[0] 630 # [0] is new in Qt5 as getOpenFileNames() returns now a tuple! 631 if paths is None: 631 if not paths: 632 632 return 633 633
Note: See TracChangeset
for help on using the changeset viewer.