Ignore:
Timestamp:
Nov 9, 2017 8:43:07 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:
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)
Message:

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

File:
1 edited

Legend:

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

    r7fb471d r4992ff2  
    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.