This commit is contained in:
2022-12-19 13:22:59 +01:00
parent 5bb8f697bc
commit f6e4a685a0

View File

@ -38,7 +38,7 @@ class MainWindow(QMainWindow):
rst.server.register_function(self.new_plot) rst.server.register_function(self.new_plot)
rst.server.register_function(self.append_data) rst.server.register_function(self.append_data)
self.sig_make_new_plot.connect(self.make_new_plot) self.sig_make_new_plot.connect(self.on_make_new_plot)
def new_plot(self, name, cfg): def new_plot(self, name, cfg):
@ -64,10 +64,10 @@ class MainWindow(QMainWindow):
self.mdi.setActiveSubWindow(sub) self.mdi.setActiveSubWindow(sub)
return return
self.make_new_plot(name, desc) self.on_make_new_plot(name, desc)
def make_new_plot(self, *args, **kwargs): def on_make_new_plot(self, *args, **kwargs):
sub = MDISubPlot(*args, **kwargs) sub = MDISubPlot(*args, **kwargs)
self.mdi.addSubWindow(sub) self.mdi.addSubWindow(sub)
sub.show() sub.show()