Changeset 9170547 in sasview for sansview


Ignore:
Timestamp:
Oct 13, 2009 10:21:59 AM (15 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:
860afc1
Parents:
0686c4d6
Message:

changed panel box width larger so that it fits well on linux/MAC too.

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    rabf2d75 r9170547  
    1717_QMAX_DEFAULT = 0.13 
    1818_NPTS_DEFAULT = 50 
     19#Control panel width  
     20if sys.platform.count("win32")>0: 
     21    PANEL_WIDTH = 420 
     22else: 
     23    PANEL_WIDTH = 490 
     24     
    1925class BasicPage(wx.ScrolledWindow): 
    2026    """ 
     
    236242        self.sizer6 = wx.BoxSizer(wx.VERTICAL) 
    237243         
    238         self.sizer0.SetMinSize((375,-1)) 
    239         self.sizer1.SetMinSize((375,-1)) 
    240         self.sizer2.SetMinSize((375,-1)) 
    241         self.sizer3.SetMinSize((375,-1)) 
    242         self.sizer4.SetMinSize((375,-1)) 
    243         self.sizer5.SetMinSize((375,-1)) 
     244        self.sizer0.SetMinSize((PANEL_WIDTH,-1)) 
     245        self.sizer1.SetMinSize((PANEL_WIDTH,-1)) 
     246        self.sizer2.SetMinSize((PANEL_WIDTH,-1)) 
     247        self.sizer3.SetMinSize((PANEL_WIDTH,-1)) 
     248        self.sizer4.SetMinSize((PANEL_WIDTH,-1)) 
     249        self.sizer5.SetMinSize((PANEL_WIDTH,-1)) 
    244250        #self.sizer6.SetMinSize((375,-1)) 
    245251         
     
    12861292        if object !=None: 
    12871293            boxsizer1.Add( (-72,-72)) 
    1288             boxsizer1.Add( object,  0, wx.ALIGN_RIGHT| wx.RIGHT, 10) 
     1294            boxsizer1.Add( object,  0, wx.ALIGN_RIGHT| wx.RIGHT, 40) 
    12891295            boxsizer1.Add( (60,60)) 
    12901296        #-------------------------------------------------------- 
     
    13671373        self.disp_cb_dict ={} 
    13681374        f_id = self.formfactorbox.GetCurrentSelection() 
     1375 
    13691376        form_factor = self.formfactorbox.GetClientData( f_id ) 
    13701377        if not form_factor in  self.model_list_box["multiplication"]: 
  • sansview/perspectives/fitting/fitpage.py

    r52cac46 r9170547  
    154154         
    155155        sizer_fit.Add((5,5),1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)         
    156         sizer_fit.Add(self.btFit,0, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)  
     156        sizer_fit.Add(self.btFit,0, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 35)  
    157157         
    158158        sizer_smearer = wx.BoxSizer(wx.HORIZONTAL) 
     
    170170         
    171171        #Display Chi^2/dof 
    172         sizer_smearer.Add((68,10)) 
     172        sizer_smearer.Add((90,10)) 
    173173        box_description= wx.StaticBox(self, -1,'Chi2/dof') 
    174174        boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
    175         boxsizer1.SetMinSize((60,-1)) 
     175        boxsizer1.SetMinSize((80,-1)) 
    176176        temp_smearer = None 
    177177        if self.enable_smearer.GetValue(): 
Note: See TracChangeset for help on using the changeset viewer.