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

    r7fb471d r4992ff2  
    44import copy 
    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 sas.qtgui.Plotting.PlotterData import Data1D 
     
    1920 
    2021 
    21 class DataOperationUtilityPanel(QtGui.QDialog, Ui_DataOperationUtility): 
     22class DataOperationUtilityPanel(QtWidgets.QDialog, Ui_DataOperationUtility): 
    2223    def __init__(self, parent=None): 
    2324        super(DataOperationUtilityPanel, self).__init__() 
     
    5758        self.txtNumber.setValidator(QtGui.QDoubleValidator()) 
    5859 
    59         self.layoutOutput = QtGui.QHBoxLayout() 
    60         self.layoutData1 = QtGui.QHBoxLayout() 
    61         self.layoutData2 = QtGui.QHBoxLayout() 
     60        self.layoutOutput = QtWidgets.QHBoxLayout() 
     61        self.layoutData1 = QtWidgets.QHBoxLayout() 
     62        self.layoutData2 = QtWidgets.QHBoxLayout() 
    6263 
    6364        # Create default layout for initial graphs (when they are still empty) 
     
    383384    def newPlot(self, graph, layout): 
    384385        """ Create template for graphs with default '?' layout""" 
    385         assert isinstance(graph, QtGui.QGraphicsView) 
    386         assert isinstance(layout, QtGui.QHBoxLayout) 
     386        assert isinstance(graph, QtWidgets.QGraphicsView) 
     387        assert isinstance(layout, QtWidgets.QHBoxLayout) 
    387388 
    388389        # clear layout 
     
    399400        """ plot data in graph after clearing its layout """ 
    400401 
    401         assert isinstance(graph, QtGui.QGraphicsView) 
    402         assert isinstance(layout, QtGui.QHBoxLayout) 
     402        assert isinstance(graph, QtWidgets.QGraphicsView) 
     403        assert isinstance(layout, QtWidgets.QHBoxLayout) 
    403404 
    404405        # clear layout 
     
    455456    def prepareSubgraphWithData(self, data): 
    456457        """ Create graphics view containing scene with string """ 
    457         scene = QtGui.QGraphicsScene() 
     458        scene = QtWidgets.QGraphicsScene() 
    458459        scene.addText(str(data)) 
    459460 
    460         subgraph = QtGui.QGraphicsView() 
     461        subgraph = QtWidgets.QGraphicsView() 
    461462        subgraph.setScene(scene) 
    462463 
Note: See TracChangeset for help on using the changeset viewer.