Changeset 4992ff2 in sasview for src/sas/qtgui/Utilities/GuiUtils.py


Ignore:
Timestamp:
Nov 9, 2017 8:43:07 AM (6 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/Utilities/GuiUtils.py

    rcee5c78 r4992ff2  
    1414import logging 
    1515 
    16 from PyQt4 import QtCore 
    17 from PyQt4 import QtGui 
     16from PyQt5 import QtCore 
     17from PyQt5 import QtGui 
     18from PyQt5 import QtWidgets 
    1819 
    1920from periodictable import formula as Formula 
     
    309310    object_item = QtGui.QStandardItem() 
    310311    object_item.setText(name) 
    311     #object_item.setData(QtCore.QVariant(update_data)) 
    312312    object_item.setData(update_data) 
    313313 
     
    586586    } 
    587587    # Query user for filename. 
    588     filename = QtGui.QFileDialog.getSaveFileName(**kwargs) 
     588    filename = QtWidgets.QFileDialog.getSaveFileName(**kwargs) 
    589589 
    590590    # User cancelled. 
     
    618618    } 
    619619    # Query user for filename. 
    620     filename = QtGui.QFileDialog.getSaveFileName(**kwargs) 
     620    filename = QtWidgets.QFileDialog.getSaveFileName(**kwargs) 
    621621 
    622622    # User cancelled. 
Note: See TracChangeset for help on using the changeset viewer.