Changeset 0806def in sasview for sansview/perspectives
- Timestamp:
- Mar 24, 2011 1:58:28 PM (14 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:
- 58e0c83
- Parents:
- dfd3577
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
rb29e47e r0806def 80 80 self.Layout() 81 81 return 82 #if self.engine_type =="park":83 # self.btFit.SetLabel("Fit")84 # self.bind_fit_button()85 82 for item in self.parameters: 86 83 if self.engine_type =="scipy" : … … 197 194 #Fit button 198 195 self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 196 self.default_bt_colour = self.btFit.GetBackgroundColour() 199 197 self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 200 198 self.btFit.SetToolTipString("Start fitting.") … … 973 971 self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 974 972 if self.btFit.GetLabel().lower() == "stop": 973 self.btFit.SetBackgroundColour('red') 975 974 self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 976 975 id=self.btFit.GetId()) 977 976 elif self.btFit.GetLabel().lower() == "fit": 977 self.btFit.SetBackgroundColour(self.default_bt_colour) 978 978 self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit, 979 979 id=self.btFit.GetId())
Note: See TracChangeset
for help on using the changeset viewer.