Changeset f22e626 in sasview for sansview/perspectives/fitting/fitpage.py
- Timestamp:
- May 13, 2011 12:53:43 PM (13 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:
- 13a63ab
- Parents:
- 248b918
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r31f9c172 rf22e626 43 43 self._fill_datainfo_sizer() 44 44 self.is_2D = None 45 self.fit_started = False 45 46 # get smear info from data 46 47 self._get_smear_info() … … 982 983 self.bind_fit_button() 983 984 985 984 986 def bind_fit_button(self): 985 987 """ … … 988 990 self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 989 991 if self.btFit.GetLabel().lower() == "stop": 992 self.fit_started = True 990 993 self.btFit.SetForegroundColour('red') 991 994 self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 992 995 id=self.btFit.GetId()) 993 996 elif self.btFit.GetLabel().lower() == "fit": 997 self.fit_started = False 994 998 self.btFit.SetDefault() 995 999 self.btFit.SetForegroundColour('black') … … 1002 1006 self._manager._reset_schedule_problem(value=0) 1003 1007 1004 1005 def _StopFit(self, event): 1008 def is_fitting(self): 1009 if self.fit_started: 1010 self._StopFit(event=None) 1011 1012 def _StopFit(self, event=None): 1006 1013 """ 1007 1014 Stop fit
Note: See TracChangeset
for help on using the changeset viewer.