Changeset 3ddc2c4 in sasview
- Timestamp:
- Jun 22, 2011 5:30:19 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:
- ee1ecc57
- Parents:
- ddb0fe76
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitpage.py
r8c6a0b9 r3ddc2c4 1015 1015 bind the fit button to either fit handler or stop fit handler 1016 1016 """ 1017 print "bind"1018 1019 1017 self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 1020 print "unbind"1021 1018 if self.btFit.GetLabel().lower() == "stop": 1022 1019 self.fit_started = True … … 1024 1021 self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 1025 1022 id=self.btFit.GetId()) 1026 print "bind00"1027 1023 elif self.btFit.GetLabel().lower() == "fit": 1028 1024 self.fit_started = False … … 1045 1041 Stop fit 1046 1042 """ 1047 time.sleep(0.1)1043 #time.sleep(0.1) 1048 1044 if event != None: 1049 1045 event.Skip() -
sansview/perspectives/fitting/fitting.py
rddb0fe76 r3ddc2c4 476 476 msg = "Fit stop!" 477 477 wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 478 if uid in self.fit_thread_list.keys(): 479 print "uid", uid 480 del self.fit_thread_list[uid] 478 del self.fit_thread_list[uid] 481 479 #set the fit button label of page when fit stop is trigger from 482 480 #simultaneous fit pane
Note: See TracChangeset
for help on using the changeset viewer.