Changeset 4992ff2 in sasview for src/sas/qtgui/Calculators/ResolutionCalculatorPanel.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/ResolutionCalculatorPanel.py
r7fb471d r4992ff2 4 4 instrumental parameters. 5 5 """ 6 from PyQt4 import QtGui 7 from PyQt4 import QtCore 6 from PyQt5 import QtCore 7 from PyQt5 import QtGui 8 from PyQt5 import QtWidgets 8 9 9 10 from twisted.internet import threads … … 33 34 34 35 35 class ResolutionCalculatorPanel(Qt Gui.QDialog, Ui_ResolutionCalculatorPanel):36 class ResolutionCalculatorPanel(QtWidgets.QDialog, Ui_ResolutionCalculatorPanel): 36 37 """ 37 38 compute resolution in 2D … … 315 316 """ On Spectrum Combobox event""" 316 317 if self.cbCustomSpectrum.currentText() == 'Add New': 317 datafile = Qt Gui.QFileDialog.getOpenFileName(318 datafile = QtWidgets.QFileDialog.getOpenFileName( 318 319 self, "Choose a spectral distribution file", "", 319 320 "All files (*.*)", 320 Qt Gui.QFileDialog.DontUseNativeDialog)321 QtWidgets.QFileDialog.DontUseNativeDialog) 321 322 322 323 if datafile is None or str(datafile) == '': … … 721 722 self.plotter.scale = 'linear' 722 723 self.plotter.cmap = None 723 layout = Qt Gui.QHBoxLayout()724 layout = QtWidgets.QHBoxLayout() 724 725 layout.setContentsMargins(0, 0, 0, 0) 725 726 self.graphicsView.setLayout(layout)
Note: See TracChangeset
for help on using the changeset viewer.