fix:made rst a global variable so you can call shutdown in the test

This commit is contained in:
stalbe_j
2023-01-16 16:07:58 +01:00
parent f0c2d02989
commit 071dac82af

View File

@ -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)