Changeset 0849aec in sasview for src/sas/qtgui/Utilities


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

Location:
src/sas/qtgui/Utilities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    r895e7359 r0849aec  
    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. 
  • src/sas/qtgui/Utilities/IPythonWidget.py

    rfef38e8 r0849aec  
    1 from PyQt4 import QtCore, QtGui, QtSvg 
     1from PyQt5 import QtCore 
     2from PyQt5 import QtGui 
     3from PyQt5 import QtWidgets 
     4 
     5##from PyQt4 import QtSvg 
    26 
    37def new_load_qt(api_options): 
  • src/sas/qtgui/Utilities/SasviewLogger.py

    • Property mode changed from 100755 to 100644
    rb0b09b9 r0849aec  
    33import logging 
    44 
    5 from PyQt4 import QtCore 
     5from PyQt5.QtCore import * 
    66 
    77 
    8 class XStream(QtCore.QObject): 
     8class XStream(QObject): 
    99    _stdout = None 
    1010    _stderr = None 
    11     messageWritten = QtCore.pyqtSignal(str) 
     11    messageWritten = pyqtSignal(str) 
    1212 
    1313    def flush(self): 
Note: See TracChangeset for help on using the changeset viewer.