Changeset fbf4bf8 in sasview for sansview/perspectives/fitting/modelpage.py
- Timestamp:
- Apr 29, 2009 9:46:46 AM (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:
- 1f9ff448
- Parents:
- 6dd2be3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/modelpage.py
r27976fd0 rfbf4bf8 37 37 description = self.model.description 38 38 39 self.select_model(self.model , self.model.name)39 self.select_model(self.model) 40 40 self.set_model_description(description,self.sizer2) 41 41 … … 101 101 """ 102 102 self._on_select_model_helper() 103 self.select_model(self.model, self.model.name) 103 104 self.select_model(self.model) 104 105 105 106 … … 323 324 324 325 325 def select_model(self, model , name):326 def select_model(self, model): 326 327 """ 327 328 Select a new model … … 329 330 """ 330 331 self.model = model 331 self.set_model_param_sizer(self.model) 332 332 if self.model ==None: 333 self.set_model_param_sizer(self.model) 334 return 335 self.set_model_param_sizer(self.model) 333 336 ## keep the sizer view consistent with the model menu selecting 334 337 self._set_model_sizer_selection( self.model ) … … 448 451 if model ==None: 449 452 ##no model avaiable to draw sizer 453 self.sizer3.Layout() 454 self.SetScrollbars(20,20,200,100) 450 455 return 451 456 box_description= wx.StaticBox(self, -1,str("Model Parameters"))
Note: See TracChangeset
for help on using the changeset viewer.