naming
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user