Ignore:
Timestamp:
Oct 14, 2009 10:00:19 PM (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:
448e69c
Parents:
860afc1
Message:

fixed textbox and buttons in fit-panel and model-panel for MAC.

File:
1 edited

Legend:

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

    ra720d1f rff8f99b  
    8383            add  access to npts 
    8484        """ 
    85         sizer_npts= wx.GridSizer(1, 1,5, 5) 
    86      
     85        ##The following 3 lines are for Mac. Let JHC know before modifying.. 
     86        title = "Plotted Q Range" 
     87        box_description= wx.StaticBox(self, -1,str(title)) 
     88        boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
     89 
     90        sizer_npts= wx.GridSizer(1, 1,5, 5)     
    8791        self.npts    = BasicPage.ModelTextCtrl(self, -1,size=(_BOX_WIDTH,20)) 
    8892        self.npts.SetValue(format_number(self.num_points)) 
     
    9195        sizer_npts.Add(wx.StaticText(self, -1, 'Npts'),1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)         
    9296        sizer_npts.Add(self.npts,1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)  
    93         self._set_range_sizer( title="Plotted Q Range", object= sizer_npts) 
     97        self._set_range_sizer( title=title, box_sizer=boxsizer1, object= sizer_npts) 
    9498        
    9599        
     
    108112            fill sizer containing model info 
    109113        """ 
     114        ##The following 3 lines are for Mac. Let JHC know before modifying.. 
     115        title = "Model" 
     116        box_description= wx.StaticBox(self, -1,str(title)) 
     117        boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
     118         
    110119        id = wx.NewId() 
    111120        self.model_view =wx.Button(self,id,'View 2D') 
     
    114123         
    115124        ## class base method  to add view 2d button    
    116         self._set_model_sizer(sizer=sizer, title="Model",object= self.model_view )     
     125        self._set_model_sizer(sizer=sizer,box_sizer=boxsizer1, title=title,object= self.model_view )     
    117126     
    118127   
     
    397406        self.Bind( wx.EVT_RADIOBUTTON, self._on_display_description, 
    398407                   id=self.description_show.GetId() ) 
     408        #MAC needs SetValue 
     409        self.description_hide.SetValue(True) 
    399410         
    400411        self.model_description = wx.Button(self,-1, label="Details") 
     
    405416        sizer_selection.Add( (20,20))  
    406417        sizer_selection.Add( self.description_hide ) 
    407         sizer_selection.Add((20,20),0, wx.LEFT|wx.RIGHT|wx.EXPAND,67) 
     418        sizer_selection.Add((20,20),0, wx.LEFT|wx.RIGHT|wx.EXPAND,75) 
    408419        sizer_selection.Add( self.model_description ) 
    409420                      
Note: See TracChangeset for help on using the changeset viewer.