fix:made rst a global variable so you can call shutdown in the test
This commit is contained in:
@ -45,10 +45,10 @@ class MainWindow(QMainWindow):
|
||||
|
||||
self.setCentralWidget(splitter)
|
||||
|
||||
rst = RPCServerThread(host, port)
|
||||
rst.start()
|
||||
rst.server.register_function(self.new_plot)
|
||||
rst.server.register_function(self.append_data)
|
||||
self.rst = RPCServerThread(host, port)
|
||||
self.rst.start()
|
||||
self.rst.server.register_function(self.new_plot)
|
||||
self.rst.server.register_function(self.append_data)
|
||||
|
||||
self.sig_make_new_plot.connect(self.on_make_new_plot)
|
||||
|
||||
|
Reference in New Issue
Block a user