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