def _loop_analysis_show_window(self):
"""Show feedback window. This window updates the feedback at an interval
defined by the user.
If this function is called, `func` must return a string to be displayed
in the feedback window. This string can include HTML and CSS, though not
all CSS is supported. See PyQt's stylesheet.
"""
app = QApplication.instance()
if not app:
app = QApplication(sys.argv)
self.window = MainWindow(self.stream, self.func,
self.args, self.buffer_len,
self._kill_signal)
self.window.show()
# Stop the analysis loop if MainWindow is closed.
app.aboutToQuit.connect(self.stop)
sys.exit(app.exec_())
评论列表
文章目录