Ignore:
Timestamp:
Oct 30, 2017 7:50:09 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
304d082
Parents:
99ea1b0
Message:

Initial, in-progress version. Not really working atm. SASVIEW-787

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/ResolutionCalculatorPanel.py

    r99ea1b0 r0849aec  
    44instrumental parameters. 
    55""" 
    6 from PyQt4 import QtGui 
    7 from PyQt4 import QtCore 
     6from PyQt5 import QtCore 
     7from PyQt5 import QtGui 
     8from PyQt5 import QtWidgets 
    89 
    910from twisted.internet import threads 
     
    3334 
    3435 
    35 class ResolutionCalculatorPanel(QtGui.QDialog, Ui_ResolutionCalculatorPanel): 
     36class ResolutionCalculatorPanel(QtWidgets.QDialog, Ui_ResolutionCalculatorPanel): 
    3637    """ 
    3738    compute resolution in 2D 
     
    315316        """ On Spectrum Combobox event""" 
    316317        if self.cbCustomSpectrum.currentText() == 'Add New': 
    317             datafile = QtGui.QFileDialog.getOpenFileName( 
     318            datafile = QtWidgets.QFileDialog.getOpenFileName( 
    318319                self, "Choose a spectral distribution file", "", 
    319320                "All files (*.*)", 
    320                 QtGui.QFileDialog.DontUseNativeDialog) 
     321                QtWidgets.QFileDialog.DontUseNativeDialog) 
    321322 
    322323            if datafile is None or str(datafile) == '': 
     
    721722        self.plotter.scale = 'linear' 
    722723        self.plotter.cmap = None 
    723         layout = QtGui.QHBoxLayout() 
     724        layout = QtWidgets.QHBoxLayout() 
    724725        layout.setContentsMargins(0, 0, 0, 0) 
    725726        self.graphicsView.setLayout(layout) 
Note: See TracChangeset for help on using the changeset viewer.