Changeset 691643c in sasview


Ignore:
Timestamp:
Jan 10, 2011 1:58:01 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
e696e0a
Parents:
7f84e22
Message:

make panels inheriting from panelbase

Location:
guiframe
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/Plotter1D.py

    r32c0841 r691643c  
    3232from sans.guiframe.dataFitting import Data1D 
    3333from sans.guiframe.dataFitting import Theory1D 
     34from sans.guiframe.panel_base import PanelBase 
    3435from binder import BindArtist 
    3536 
     
    4041 
    4142 
    42 class ModelPanel1D(PlotPanel): 
     43class ModelPanel1D(PlotPanel, PanelBase): 
    4344    """ 
    4445    Plot panel for use with the GUI manager 
     
    5758    def __init__(self, parent, id=-1, color = None, 
    5859                 dpi=None, style=wx.NO_FULL_REPAINT_ON_RESIZE, **kwargs): 
    59         """ 
    60         Initialize the panel 
    61         """ 
    6260        PlotPanel.__init__(self, parent, id=id, style=style, **kwargs) 
     61        PanelBase.__init__(self) 
    6362        ## Reference to the parent window 
    6463        self.parent = parent 
  • guiframe/local_perspectives/plotting/slicerpanel.py

    r32c0841 r691643c  
    99from sans.guicomm.events import EVT_SLICER 
    1010 
     11from sans.guiframe.panel_base import PanelBase 
    1112 
    12 class SlicerPanel(wx.Panel): 
     13class SlicerPanel(wx.Panel, PanelBase): 
    1314    """ 
    1415    Panel class to show the slicer parameters  
     
    2526                params=None, *args, **kwargs): 
    2627        wx.Panel.__init__(self, parent, id, *args, **kwargs) 
     28        PanelBase.__init__(self) 
    2729        ##  Initialization of the class      
    2830        self.base = base 
  • guiframe/panel_base.py

    rb5ca223 r691643c  
    1818    """ 
    1919    ## Internal nickname for the window, used by the AUI manager 
    20     window_name = "default" 
     20    #window_name = "default" 
    2121    ## Name to appear on the window title bar 
    22     window_caption = "Welcome panel" 
     22    #window_caption = "Welcome panel" 
    2323    ## Flag to tell the AUI manager to put this panel in the center pane 
    24     CENTER_PANE = True 
     24    #CENTER_PANE = True 
    2525     
    2626    def __init__(self): 
Note: See TracChangeset for help on using the changeset viewer.