Changeset 355b684 in sasview


Ignore:
Timestamp:
Apr 14, 2010 5:14:32 PM (15 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:
f1b0f70
Parents:
2f6c260
Message:

resize invariant panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rb7f29fc r355b684  
    3434if sys.platform.count("win32")>0: 
    3535    _STATICBOX_WIDTH = 450 
    36     PANEL_WIDTH = 500 
     36    PANEL_WIDTH = 500  
    3737    PANEL_HEIGHT = 700 
    3838    FONT_VARIANT = 0 
     
    5454    ## Flag to tell the AUI manager to put this panel in the center pane 
    5555    CENTER_PANE = True 
    56     def __init__(self, parent, data=None, manager=None): 
    57         ScrolledPanel.__init__(self, parent) 
     56    def __init__(self, parent, data=None, manager=None,*args, **kwds): 
     57        kwds["size"]=(PANEL_WIDTH, PANEL_HEIGHT) 
     58        ScrolledPanel.__init__(self, parent=parent, *args, **kwds) 
    5859        #Font size  
    5960        self.SetWindowVariant(variant=FONT_VARIANT) 
     
    961962        self._layout_outputs_sizer() 
    962963        self._layout_button() 
    963         self.main_sizer.AddMany([(self.data_name_boxsizer, 1, wx.ALL, 10), 
     964        self.main_sizer.AddMany([(self.data_name_boxsizer,0, wx.ALL, 10), 
    964965                                  (self.outputs_sizer, 0, 
    965966                                  wx.LEFT|wx.RIGHT|wx.BOTTOM, 10), 
    966                                   (self.button_sizer, 0, 
     967                                  (self.button_sizer,0, 
    967968                                  wx.LEFT|wx.RIGHT|wx.BOTTOM, 10), 
    968969                                 (self.inputs_sizer, 0, 
     
    971972                                  wx.LEFT|wx.RIGHT|wx.BOTTOM, 10)]) 
    972973        self.SetSizer(self.main_sizer) 
    973         #self.SetAutoLayout(True) 
     974        self.SetAutoLayout(True) 
    974975     
    975976class InvariantDialog(wx.Dialog): 
Note: See TracChangeset for help on using the changeset viewer.