Changeset 416fa8f in sasview for src/sas/qtgui/Plotter2D.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/Plotter2D.py

    r64f1e93 r416fa8f  
    1111from mpl_toolkits.mplot3d import Axes3D 
    1212 
    13 class Plotter2D(PlotterBase): 
    14     def __init__(self, parent=None, quickplot=False, dimension=2): 
     13class Plotter2DWidget(PlotterBase): 
     14    def __init__(self, parent=None, manager=None, quickplot=False, dimension=2): 
    1515        self.dimension = dimension 
    16         super(Plotter2D, self).__init__(parent, quickplot=quickplot) 
     16        super(Plotter2DWidget, self).__init__(parent, manager=manager, quickplot=quickplot) 
    1717 
    1818    @property 
     
    189189        else: 
    190190            self.figure.canvas.draw() 
     191 
     192class Plotter2D(QtGui.QDialog, Plotter2DWidget): 
     193    def __init__(self, parent=None, quickplot=False, dimension=2): 
     194 
     195        QtGui.QDialog.__init__(self) 
     196        Plotter2DWidget.__init__(self, manager=parent, quickplot=quickplot, dimension=2) 
Note: See TracChangeset for help on using the changeset viewer.