Changeset 998b6b8 in sasview for sansview/perspectives
- Timestamp:
- Apr 15, 2009 2:07:46 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:
- 6063b16
- Parents:
- aa1e9a72
- Location:
- sansview/perspectives/fitting
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
rb5e98540 r998b6b8 432 432 if hasattr(self,"cb1"): 433 433 self.state.cb1= self.cb1.GetValue() 434 434 print "save current state ",self.state.cb1 435 435 if hasattr(self,"enable_disp"): 436 436 self.state.enable_disp= self.enable_disp.GetValue() … … 467 467 self._set_model_sizer_selection( self.model ) 468 468 self.set_model_param_sizer(self.model) 469 469 if hasattr(self, "cb1"): 470 self.cb1.SetValue(self.state.cb1) 470 471 ## display dispersion info layer 471 472 self.enable_disp.SetValue(self.state.enable_disp) … … 477 478 if hasattr(self,"enable_smearer"): 478 479 self.enable_smearer.SetValue(state.enable_smearer) 479 480 ## reset state of checkbox,textcrtl and parameters value 481 480 482 ##plotting range restore 481 483 self._reset_plotting_range() 482 484 ## reset context menu items 483 485 self._reset_context_menu() 484 ## reset state of checkbox,textcrtl and parameters value 485 if hasattr(self, "cb1"): 486 self.cb1.SetValue(self.state.cb1) 486 487 487 self._reset_parameters_state(self.parameters,state.parameters) 488 488 self._reset_parameters_state(self.fittable_param,state.fittable_param) -
sansview/perspectives/fitting/fitpage.py
rb5e98540 r998b6b8 697 697 698 698 if self.parameters !=[]: 699 if self.cb1.GetValue() ==True:699 if self.cb1.GetValue(): 700 700 for item in self.parameters: 701 701 item[0].SetValue(True) … … 723 723 for item in self.parameters: 724 724 #Select parameters to fit for list of primary parameters 725 if item[0].GetValue() ==True:725 if item[0].GetValue(): 726 726 if not (item in self.param_toFit): 727 727 self.param_toFit.append(item ) … … 732 732 #Select parameters to fit for list of fittable parameters with dispersion 733 733 for item in self.fittable_param: 734 if item[0].GetValue() ==True:734 if item[0].GetValue(): 735 735 if not (item in self.param_toFit): 736 736 self.param_toFit.append(item) -
sansview/perspectives/fitting/pagestate.py
ra074145 r998b6b8 97 97 copy_state = state.clone() 98 98 obj.saved_states[copy_name]= copy_state 99 100 101 102 99 return obj 103 100 -
sansview/perspectives/fitting/simfitpage.py
r69bee6d r998b6b8 105 105 sizer.Clear(True) 106 106 self.sizer_constraints.Remove(sizer) 107 #self.sizer_constraints.Layout()107 108 108 self.sizer2.Layout() 109 109 self.SetScrollbars(20,20,200,100)
Note: See TracChangeset
for help on using the changeset viewer.