Changeset 416fa8f in sasview for src/sas/qtgui/Plotter.py


Ignore:
Timestamp:
Dec 7, 2016 8:17:38 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:
cad617b
Parents:
64f1e93
Message:

Initial implementation of the mask editor.
Refactored plotter base to QDialog and reimplemented as local widgets.
Fixed some unit tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotter.py

    r6d05e1d r416fa8f  
    77from sas.qtgui.PlotterBase import PlotterBase 
    88 
    9 class Plotter(PlotterBase): 
    10     def __init__(self, parent=None, quickplot=False): 
    11         super(Plotter, self).__init__(parent, quickplot=quickplot) 
     9class PlotterWidget(PlotterBase): 
     10    def __init__(self, parent=None, manager=None, quickplot=False): 
     11        super(PlotterWidget, self).__init__(parent, manager=manager, quickplot=quickplot) 
    1212 
    1313    @property 
     
    199199        # Plot the updated chart 
    200200        self.plot(marker='o', linestyle='') 
     201 
     202 
     203class Plotter(QtGui.QDialog, PlotterWidget): 
     204    def __init__(self, parent=None, quickplot=False): 
     205 
     206        QtGui.QDialog.__init__(self) 
     207        PlotterWidget.__init__(self, manager=parent, quickplot=quickplot) 
     208 
Note: See TracChangeset for help on using the changeset viewer.