Changeset f4bbb07 in sasview for sansview/perspectives/fitting
- Timestamp:
- Jun 22, 2011 4:24:35 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:
- 29bf83b
- Parents:
- 94b4cf78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r94b4cf78 rf4bbb07 149 149 self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 150 150 self.default_bt_colour = self.btFit.GetDefaultAttributes() 151 self. btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId())151 self.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 152 152 self.btFit.SetToolTipString("Start fitting.") 153 153 … … 1016 1016 bind the fit button to either fit handler or stop fit handler 1017 1017 """ 1018 self. btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId())1018 self.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 1019 1019 if self.btFit.GetLabel().lower() == "stop": 1020 1020 self.fit_started = True 1021 1021 if not self.is_mac: 1022 1022 self.btFit.SetForegroundColour('red') 1023 self. btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit,1023 self.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 1024 1024 id=self.btFit.GetId()) 1025 1025 elif self.btFit.GetLabel().lower() == "fit": … … 1029 1029 self.btFit.SetForegroundColour('black') 1030 1030 #self.btFit.SetBackgroundColour(self.default_bt_colour) 1031 self. btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit,1031 self.Bind(event=wx.EVT_BUTTON, handler=self._onFit, 1032 1032 id=self.btFit.GetId()) 1033 1033 else:
Note: See TracChangeset
for help on using the changeset viewer.