Changeset 416fa8f in sasview for src/sas/qtgui/PlotterBase.py
- Timestamp:
- Dec 7, 2016 8:17:38 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:
- cad617b
- Parents:
- 64f1e93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/PlotterBase.py
r64f1e93 r416fa8f 17 17 import sas.qtgui.PlotHelper as PlotHelper 18 18 19 class PlotterBase(QtGui.Q Dialog):20 def __init__(self, parent=None, quickplot=False):19 class PlotterBase(QtGui.QWidget): 20 def __init__(self, parent=None, manager=None, quickplot=False): 21 21 super(PlotterBase, self).__init__(parent) 22 22 23 23 # Required for the communicator 24 self. parent = parent24 self.manager = manager 25 25 self.quickplot = quickplot 26 26 … … 71 71 self.contextMenu() 72 72 # Notify the listeners 73 self. parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots())73 self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 74 74 else: 75 75 self.contextMenuQuickPlot() … … 181 181 PlotHelper.deletePlot(PlotHelper.idOfPlot(self)) 182 182 # Notify the listeners 183 self. parent.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots())183 self.manager.communicator.activeGraphsSignal.emit(PlotHelper.currentPlots()) 184 184 event.accept() 185 185
Note: See TracChangeset
for help on using the changeset viewer.