Changeset 4b402a1 in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Apr 7, 2017 9:47:29 AM (8 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 131791e
- Parents:
- d6353fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
rd6353fb r4b402a1 245 245 self.threadedDrawQueue = Queue() 246 246 247 self.threadedDrawWorker = Thread(target = self._threaded_draw_worker, args = (self.threadedDrawQueue,)) 247 self.threadedDrawWorker = Thread(target = self._threaded_draw_worker, 248 args = (self.threadedDrawQueue,)) 248 249 self.threadedDrawWorker.setDaemon(True) 249 250 self.threadedDrawWorker.start() … … 1721 1722 while True: 1722 1723 # Check to see is a manager is running and a calc is running 1723 if ((self._manager.calc_1D is not None) and (self._manager.calc_1D.isrunning() == True)) or ((self._manager.calc_2D is not None) and (self._manager.calc_2D.isrunning() == True)): 1724 if ((self._manager.calc_1D is not None) and (self._manager.calc_1D.\ 1725 isrunning() == True)) or ((self._manager.calc_2D is not None)\ 1726 and (self._manager.calc_2D.isrunning() == True)): 1724 1727 # If a manager is running a calculation 1725 1728 # then trim the queue … … 1735 1738 inputVariables = threadedDrawQueue.get() 1736 1739 self._draw_model_after(inputVariables[0], inputVariables[1]) 1737 wx.PostEvent(self._manager.parent, StatusEvent(status="Computation is in progress...", type = "progress")) 1740 wx.PostEvent(self._manager.parent, StatusEvent(status = 1741 "Computation is in progress...", type = "progress")) 1738 1742 threadedDrawQueue.task_done() 1739 1743 print 'run'
Note: See TracChangeset
for help on using the changeset viewer.