Changeset 4992ff2 in sasview for src/sas/qtgui/Calculators/SlitSizeCalculator.py
- Timestamp:
- Nov 9, 2017 8:43:07 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:
- 7969b9c
- Parents:
- 7fb471d
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/30/17 07:50:09)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:43:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/SlitSizeCalculator.py
r7fb471d r4992ff2 5 5 import sys 6 6 7 from PyQt4 import QtGui 8 from PyQt4 import QtCore 7 from PyQt5 import QtCore 8 from PyQt5 import QtGui 9 from PyQt5 import QtWidgets 9 10 10 11 from sas.qtgui.UI import main_resources_rc … … 16 17 17 18 18 class SlitSizeCalculator(Qt Gui.QDialog, Ui_SlitSizeCalculator):19 class SlitSizeCalculator(QtWidgets.QDialog, Ui_SlitSizeCalculator): 19 20 """ 20 21 Provides the slit length calculator GUI. … … 75 76 # Location is automatically saved - no need to keep track of the last dir 76 77 # But only with Qt built-in dialog (non-platform native) 77 path = Qt Gui.QFileDialog.getOpenFileName(self, "Choose a file", "",78 path = QtWidgets.QFileDialog.getOpenFileName(self, "Choose a file", "", 78 79 "SAXSess 1D data (*.txt *.TXT *.dat *.DAT)", 79 QtGui.QFileDialog.DontUseNativeDialog) 80 None, 81 QtWidgets.QFileDialog.DontUseNativeDialog) 80 82 81 83 if path is None:
Note: See TracChangeset
for help on using the changeset viewer.