Changeset 87fbc60 in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 9, 2009 6:47:11 PM (16 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:
81d87347
Parents:
24415e9
Message:

rename polydispersity fields

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    r56e1202 r87fbc60  
    177177        """ 
    178178        self.sizer4.Clear(True) 
    179         box_description= wx.StaticBox(self, -1,"PolyDispersity") 
     179        name="Polydispersity and Orientational Distribution" 
     180        box_description= wx.StaticBox(self, -1,name) 
    180181        boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
    181182        #---------------------------------------------------- 
     
    190191        sizer_dispersion = wx.BoxSizer(wx.HORIZONTAL) 
    191192        sizer_dispersion.Add((20,20)) 
    192         name="Polydispersity and \nOrientation average " 
     193        name="Polydispersity and \nOrientational Distribution " 
    193194        sizer_dispersion.Add(wx.StaticText(self,-1,name)) 
    194195        sizer_dispersion.Add(self.enable_disp ) 
     
    422423            Store current state 
    423424        """ 
    424         self.state.model = self.model.clone() 
     425        if self.model!= None: 
     426            self.state.model = self.model.clone() 
    425427        self.state.save_data(self.data) 
    426428     
     
    956958            self.structurebox.Disable() 
    957959            self.structurebox.SetSelection(0) 
    958              
     960        else: 
     961            self.structurebox.Enable() 
    959962            
    960963        s_id = self.structurebox.GetCurrentSelection() 
  • sansview/perspectives/fitting/fitpage.py

    r2d5f7a1 r87fbc60  
    4444        self._fill_datainfo_sizer() 
    4545        self._fill_model_sizer( self.sizer1) 
     46        self._fill_range_sizer()  
    4647        self._on_select_model(event=None) 
    47         self._fill_range_sizer()  
    4848     
    4949        ## to update the panel according to the fit engine type selected 
     
    172172            fill sizer containing model info 
    173173        """ 
    174         sizer_tcChi = wx.GridSizer(2, 2,5, 5) 
     174        
     175        box_description= wx.StaticBox(self, -1,'Chi2/dof') 
     176        boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 
     177        boxsizer1.SetMinSize((50,-1)) 
    175178        self.tcChi    =  wx.StaticText(self, -1, "-", style=wx.ALIGN_LEFT) 
    176          
    177          
    178         self.text1_1 = wx.StaticText(self, -1, 'Chi2/dof', style=wx.ALIGN_LEFT) 
    179          
    180          
    181         self.btChi = wx.Button(self,wx.NewId(),'View Chi') 
    182         self.btChi.Bind(wx.EVT_BUTTON, self._onFit,id= self.btChi.GetId()) 
    183         self.btChi.SetToolTipString("View data - model.") 
    184          
    185         sizer_tcChi.Add(self.text1_1,1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 
    186         sizer_tcChi.Add(self.btChi,1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)         
    187         sizer_tcChi.Add(self.tcChi,1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5)         
    188         sizer_tcChi.Add((5,5),1, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 5) 
     179        boxsizer1.Add( self.tcChi ) 
     180         
    189181             
    190182        ## class base method  to add view 2d button     
    191         self._set_model_sizer(sizer=sizer, title="Model",object=  sizer_tcChi )     
     183        self._set_model_sizer(sizer=sizer, title="Model",object= boxsizer1 )     
    192184     
    193185     
Note: See TracChangeset for help on using the changeset viewer.