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/SlitSizeCalculator.py

    r7fb471d r4992ff2  
    55import sys 
    66 
    7 from PyQt4 import QtGui 
    8 from PyQt4 import QtCore 
     7from PyQt5 import QtCore 
     8from PyQt5 import QtGui 
     9from PyQt5 import QtWidgets 
    910 
    1011from sas.qtgui.UI import main_resources_rc 
     
    1617 
    1718 
    18 class SlitSizeCalculator(QtGui.QDialog, Ui_SlitSizeCalculator): 
     19class SlitSizeCalculator(QtWidgets.QDialog, Ui_SlitSizeCalculator): 
    1920    """ 
    2021    Provides the slit length calculator GUI. 
     
    7576        # Location is automatically saved - no need to keep track of the last dir 
    7677        # But only with Qt built-in dialog (non-platform native) 
    77         path = QtGui.QFileDialog.getOpenFileName(self, "Choose a file", "", 
     78        path = QtWidgets.QFileDialog.getOpenFileName(self, "Choose a file", "", 
    7879                                                 "SAXSess 1D data (*.txt *.TXT *.dat *.DAT)", 
    79                                                  QtGui.QFileDialog.DontUseNativeDialog) 
     80                                                 None, 
     81                                                 QtWidgets.QFileDialog.DontUseNativeDialog) 
    8082 
    8183        if path is None: 
Note: See TracChangeset for help on using the changeset viewer.