- Timestamp:
- Apr 29, 2009 11: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
- Location:
- sansview/perspectives/fitting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rc097f02 rfbf4bf8 1036 1036 name = model.name 1037 1037 combobox.Append(name,models) 1038 try:1038 #try: 1039 1039 1040 combobox.SetSelection(0)1041 1042 except:1043 pass1040 #combobox.SetSelection(0) 1041 1042 #except: 1043 #pass 1044 1044 1045 1045 return 0 … … 1070 1070 self.model= MultiplicationModel(form_factor(),struct_factor()) 1071 1071 else: 1072 self.model= form_factor() 1072 if form_factor != None: 1073 self.model= form_factor() 1074 else: 1075 self.model = None 1076 return self.model 1073 1077 1074 1078 ## post state to fit panel -
sansview/perspectives/fitting/fitpage.py
r34a0c17 rfbf4bf8 49 49 self._fill_model_sizer( self.sizer1) 50 50 self._fill_range_sizer() 51 self._on_select_model(event=None)51 #self._on_select_model(event=None) 52 52 if self.data !=None: 53 53 self.smearer = smear_selection( self.data ) … … 522 522 """ 523 523 self._on_select_model_helper() 524 self.set_model_param_sizer(self.model) 524 if self.model == None: 525 self.set_model_param_sizer(self.model) 526 return 527 else: 528 self.set_model_param_sizer(self.model) 525 529 try: 526 530 temp_smear= None -
sansview/perspectives/fitting/fitpanel.py
rcd793b9 rfbf4bf8 264 264 self.count +=1 265 265 else: 266 self.model_page.select_model(model , page_title)266 self.model_page.select_model(model) 267 267 self.fit_page_name[page_title].insert(0,self.model_page.createMemento()) 268 268 -
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.