Changeset 87fbc60 in sasview for sansview/perspectives
- Timestamp:
- Apr 9, 2009 6:47:11 PM (16 years ago)
- 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
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r56e1202 r87fbc60 177 177 """ 178 178 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) 180 181 boxsizer1 = wx.StaticBoxSizer(box_description, wx.VERTICAL) 181 182 #---------------------------------------------------- … … 190 191 sizer_dispersion = wx.BoxSizer(wx.HORIZONTAL) 191 192 sizer_dispersion.Add((20,20)) 192 name="Polydispersity and \nOrientation average"193 name="Polydispersity and \nOrientational Distribution " 193 194 sizer_dispersion.Add(wx.StaticText(self,-1,name)) 194 195 sizer_dispersion.Add(self.enable_disp ) … … 422 423 Store current state 423 424 """ 424 self.state.model = self.model.clone() 425 if self.model!= None: 426 self.state.model = self.model.clone() 425 427 self.state.save_data(self.data) 426 428 … … 956 958 self.structurebox.Disable() 957 959 self.structurebox.SetSelection(0) 958 960 else: 961 self.structurebox.Enable() 959 962 960 963 s_id = self.structurebox.GetCurrentSelection() -
sansview/perspectives/fitting/fitpage.py
r2d5f7a1 r87fbc60 44 44 self._fill_datainfo_sizer() 45 45 self._fill_model_sizer( self.sizer1) 46 self._fill_range_sizer() 46 47 self._on_select_model(event=None) 47 self._fill_range_sizer()48 48 49 49 ## to update the panel according to the fit engine type selected … … 172 172 fill sizer containing model info 173 173 """ 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)) 175 178 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 189 181 190 182 ## 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 ) 192 184 193 185
Note: See TracChangeset
for help on using the changeset viewer.