Changeset 4992ff2 in sasview for src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
- Timestamp:
- Nov 9, 2017 8:43:07 AM (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/DataOperationUtilityPanel.py
r7fb471d r4992ff2 4 4 import copy 5 5 6 from PyQt4 import QtGui 7 from PyQt4 import QtCore 6 from PyQt5 import QtCore 7 from PyQt5 import QtGui 8 from PyQt5 import QtWidgets 8 9 9 10 from sas.qtgui.Plotting.PlotterData import Data1D … … 19 20 20 21 21 class DataOperationUtilityPanel(Qt Gui.QDialog, Ui_DataOperationUtility):22 class DataOperationUtilityPanel(QtWidgets.QDialog, Ui_DataOperationUtility): 22 23 def __init__(self, parent=None): 23 24 super(DataOperationUtilityPanel, self).__init__() … … 57 58 self.txtNumber.setValidator(QtGui.QDoubleValidator()) 58 59 59 self.layoutOutput = Qt Gui.QHBoxLayout()60 self.layoutData1 = Qt Gui.QHBoxLayout()61 self.layoutData2 = Qt Gui.QHBoxLayout()60 self.layoutOutput = QtWidgets.QHBoxLayout() 61 self.layoutData1 = QtWidgets.QHBoxLayout() 62 self.layoutData2 = QtWidgets.QHBoxLayout() 62 63 63 64 # Create default layout for initial graphs (when they are still empty) … … 383 384 def newPlot(self, graph, layout): 384 385 """ Create template for graphs with default '?' layout""" 385 assert isinstance(graph, Qt Gui.QGraphicsView)386 assert isinstance(layout, Qt Gui.QHBoxLayout)386 assert isinstance(graph, QtWidgets.QGraphicsView) 387 assert isinstance(layout, QtWidgets.QHBoxLayout) 387 388 388 389 # clear layout … … 399 400 """ plot data in graph after clearing its layout """ 400 401 401 assert isinstance(graph, Qt Gui.QGraphicsView)402 assert isinstance(layout, Qt Gui.QHBoxLayout)402 assert isinstance(graph, QtWidgets.QGraphicsView) 403 assert isinstance(layout, QtWidgets.QHBoxLayout) 403 404 404 405 # clear layout … … 455 456 def prepareSubgraphWithData(self, data): 456 457 """ Create graphics view containing scene with string """ 457 scene = Qt Gui.QGraphicsScene()458 scene = QtWidgets.QGraphicsScene() 458 459 scene.addText(str(data)) 459 460 460 subgraph = Qt Gui.QGraphicsView()461 subgraph = QtWidgets.QGraphicsView() 461 462 subgraph.setScene(scene) 462 463
Note: See TracChangeset
for help on using the changeset viewer.