Changeset 50c769e in sasview for sansview/perspectives/fitting
- Timestamp:
- Feb 19, 2009 3:13:27 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:
- 77bf7c0
- Parents:
- 4f8a00c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/modelpage.py
r96f97f3 r50c769e 48 48 #panel interface 49 49 self.vbox = wx.BoxSizer(wx.VERTICAL) 50 self.sizer11 = wx.BoxSizer(wx.HORIZONTAL) 50 51 self.sizer10 = wx.GridBagSizer(5,5) 51 52 self.sizer9 = wx.GridBagSizer(5,5) … … 59 60 self.vbox.Add(wx.StaticLine(self, -1), 0, wx.EXPAND, 0) 60 61 self.vbox.Add(self.sizer4) 62 #model description 63 self.vbox.Add(self.sizer11) 61 64 #model paramaters layer 62 65 self.vbox.Add(self.sizer5) … … 77 80 78 81 #------------------ sizer 4 draw------------------------ 79 # model on which the fit would be performed 80 self.model=model 82 81 83 82 84 # define combox box … … 100 102 self.model_view.Bind(wx.EVT_BUTTON, self.onModel2D,id=id) 101 103 self.model_view.SetToolTipString("View model in 2D") 104 102 105 self.sizer4.Add(self.model_view,(iy,ix),(1,1),\ 103 106 wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 107 104 108 self.model_view.Enable() 105 109 self.model_view.SetFocus() 106 110 111 ix = 0 112 iy += 1 113 self.sizer4.Add((20,20),(iy,ix),(1,1),wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 114 107 115 #----------sizer6------------------------------------------------- 108 116 self.disable_disp = wx.RadioButton(self, -1, 'No', (10, 10), style=wx.RB_GROUP) … … 203 211 self.model_list_box={} 204 212 #Draw initial panel 213 #-----sizer 11--------------------model description------ 205 214 if self.model!=None: 206 215 self.set_panel(self.model) … … 216 225 self.Layout() 217 226 self.parent.GetSizer().Layout() 227 def set_model_description(self, model): 228 229 if model !=None and str(model.description)!=""and self.data==None: 230 self.sizer11.Clear(True) 231 self.box_description= wx.StaticBox(self, -1, 'Model Description') 232 boxsizer1 = wx.StaticBoxSizer(self.box_description, wx.VERTICAL) 233 boxsizer1.SetMinSize((320,20)) 234 self.description = wx.StaticText(self,-1,str(model.description)) 235 boxsizer1.Add(self.description, 0, wx.EXPAND) 236 self.sizer11.Add(boxsizer1,1, wx.EXPAND | wx.ALL, 2) 237 218 238 219 239 def set_owner(self,owner): … … 471 491 self.fixed_param=[] 472 492 self.model = model 493 494 self.set_model_description( self.model) 495 473 496 keys = self.model.getParamList() 474 497 #list of dispersion paramaters
Note: See TracChangeset
for help on using the changeset viewer.