Changeset eaab2ad in sasview for invariantview


Ignore:
Timestamp:
Apr 29, 2011 3:29:43 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
de99e3e4
Parents:
7d16278
Message:

resized some sizers

File:
1 edited

Legend:

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

    r7d16278 reaab2ad  
    4141 
    4242if sys.platform.count("win32") > 0: 
    43     _STATICBOX_WIDTH = 400 
     43    _STATICBOX_WIDTH = 420 
    4444    PANEL_WIDTH = 500  
    4545    PANEL_HEIGHT = 700 
    4646    FONT_VARIANT = 0 
    4747else: 
    48     _STATICBOX_WIDTH = 430 
     48    _STATICBOX_WIDTH = 450 
    4949    PANEL_WIDTH = 530 
    5050    PANEL_HEIGHT = 700 
     
    12811281                                            style=0)  
    12821282        self.data_name_tcl.SetToolTipString("Data's name.") 
    1283         self.data_name_sizer.AddMany([(data_name_txt, 0, wx.LEFT|wx.RIGHT, 5), 
     1283        self.data_name_sizer.AddMany([(data_name_txt, 0, wx.LEFT|wx.RIGHT, 10), 
    12841284                                       (self.data_name_tcl, 0, wx.EXPAND)]) 
    12851285        #Data range [string] 
     
    12951295        self.data_range_sizer.AddMany([(data_range_txt, 0, wx.RIGHT, 5), 
    12961296                                       (data_min_txt, 0, wx.RIGHT, 5), 
    1297                                        (self.data_min_tcl, 0, wx.RIGHT, 5), 
     1297                                       (self.data_min_tcl, 0, wx.RIGHT, 20), 
    12981298                                       (data_max_txt, 0, wx.RIGHT, 5), 
    1299                                        (self.data_max_tcl, 0, wx.RIGHT, 5)]) 
    1300         self.data_name_boxsizer.AddMany([(self.hint_msg_sizer, 0 , wx.ALL, 2), 
    1301                             (self.data_name_sizer, 0 , wx.ALL, 5), 
    1302                                      (self.data_range_sizer, 0 , wx.ALL, 5)]) 
     1299                                       (self.data_max_tcl, 0, wx.RIGHT, 10)]) 
     1300        self.data_name_boxsizer.AddMany([(self.hint_msg_sizer, 0 , wx.ALL, 5), 
     1301                            (self.data_name_sizer, 0 , wx.ALL, 10), 
     1302                                     (self.data_range_sizer, 0 , wx.ALL, 10)]) 
    13031303     
    13041304    def _enable_fit_power_law_low(self, event=None): 
     
    15801580                                                 wx.LEFT, 5), 
    15811581                                                (extrapolation_min_txt, 0, 
    1582                                                  wx.LEFT, 5), 
     1582                                                 wx.LEFT, 10), 
    15831583                                                (self.extrapolation_min_tcl, 
    15841584                                                            0, wx.LEFT, 5), 
    15851585                                                (extrapolation_max_txt, 0, 
    1586                                                  wx.LEFT, 5), 
     1586                                                 wx.LEFT, 20), 
    15871587                                                (self.extrapolation_max_tcl, 
    15881588                                                            0, wx.LEFT, 5)]) 
     
    16321632        ix += 1 
    16331633        self.volume_surface_sizer.Add(self.volume_tcl, (iy, ix), (1, 1), 
    1634                             wx.EXPAND|wx.ADJUST_MINSIZE, 10) 
     1634                            wx.EXPAND|wx.ADJUST_MINSIZE, 20) 
    16351635        ix += 1 
    16361636        self.volume_surface_sizer.Add(wx.StaticText(self, -1, uncertainty), 
     
    16481648        ix += 1 
    16491649        self.volume_surface_sizer.Add(self.surface_tcl, (iy, ix), (1, 1), 
    1650                             wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
     1650                            wx.EXPAND|wx.ADJUST_MINSIZE, 20) 
    16511651        ix += 1 
    16521652        self.volume_surface_sizer.Add(wx.StaticText(self, -1, uncertainty), 
    1653                          (iy, ix),(1,1),wx.EXPAND|wx.ADJUST_MINSIZE, 0)  
     1653                         (iy, ix),(1,1),wx.EXPAND|wx.ADJUST_MINSIZE, 10)  
    16541654        ix += 1 
    16551655        self.volume_surface_sizer.Add(self.surface_err_tcl, (iy, ix), (1, 1), 
    1656                             wx.EXPAND|wx.ADJUST_MINSIZE, 0)  
     1656                            wx.EXPAND|wx.ADJUST_MINSIZE, 10)  
    16571657        ix += 1 
    16581658        self.volume_surface_sizer.Add(surface_units_txt, (iy, ix), (1, 1), 
     
    17031703        Draw widgets related to inputs 
    17041704        """ 
    1705         contrast_txt = wx.StaticText(self, -1, 'Contrast : ')   
     1705        contrast_txt = wx.StaticText(self, -1, 'Contrast :')   
    17061706        self.contrast_tcl = InvTextCtrl(self, -1, size=(_BOX_WIDTH, 20), 
    17071707                                        style=0,name='contrast_tcl') 
     
    17341734                                  (self.background_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 
    17351735                                (background_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    1736                                 (scale_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
     1736                                (scale_txt, 0, wx.LEFT|wx.BOTTOM, 20), 
    17371737                                (self.scale_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5), 
    17381738                                (contrast_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    17391739                                (self.contrast_tcl, 0, wx.LEFT|wx.BOTTOM, 5), 
    17401740                                (contrast_unit_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
    1741                                 (porod_const_txt, 0, wx.LEFT|wx.BOTTOM, 5), 
     1741                                (porod_const_txt, 0, wx.LEFT, 20), 
    17421742                        (self.porod_constant_tcl, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5)]) 
    17431743        self.inputs_sizer.Add(self.sizer_input) 
Note: See TracChangeset for help on using the changeset viewer.