@@ -4751,15 +4751,15 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||
|
4751 | 4751 | self.threadStarted = False |
|
4752 | 4752 | self.controllerThread.stop() |
|
4753 | 4753 | |
|
4754 |
while self. |
|
|
4754 | while not self.plotManager.isEmpty(): | |
|
4755 | 4755 | self.plotManager.run() |
|
4756 | sleep(0.5) | |
|
4757 | 4756 | |
|
4758 |
|
|
|
4759 |
|
|
|
4760 | self.plotManager.close() | |
|
4761 | self.plotManager = None | |
|
4757 | self.plotManager.close() | |
|
4758 | self.plotManager = None | |
|
4762 | 4759 | |
|
4760 | while self.controllerThread.isRunning(): | |
|
4761 | sleep(0.5) | |
|
4762 | ||
|
4763 | 4763 | self._disable_stop_button() |
|
4764 | 4764 | self._enable_play_button() |
|
4765 | 4765 |
@@ -113,10 +113,12 class PlotManager(): | |||
|
113 | 113 | plotter = self.plotInstanceDict[plot_id] |
|
114 | 114 | plotter.run(dataPlot, plot_id, **kwargs) |
|
115 | 115 | |
|
116 | ||
|
117 | ||
|
118 | 116 | self.__lock.release() |
|
119 | ||
|
117 | ||
|
118 | def isEmpty(self): | |
|
119 | ||
|
120 | return self.__queue.empty() | |
|
121 | ||
|
120 | 122 | def stop(self): |
|
121 | 123 | |
|
122 | 124 | self.__lock.acquire() |
General Comments 0
You need to be logged in to leave comments.
Login now