minimized the changes
This commit is contained in:
3
grum/.vscode/settings.json
vendored
3
grum/.vscode/settings.json
vendored
@ -1,3 +0,0 @@
|
||||
{
|
||||
"python.formatting.provider": "black"
|
||||
}
|
@ -56,13 +56,14 @@ class MainWindow(QMainWindow):
|
||||
rst.server.register_function(self.new_plot)
|
||||
rst.server.register_function(self.append_data)
|
||||
|
||||
|
||||
self.sig_make_new_plot.connect(self.on_make_new_plot)
|
||||
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
if event.key() == Qt.Key_F1:
|
||||
self.webdoc.show()
|
||||
|
||||
|
||||
# Remote API calls
|
||||
|
||||
def new_plot(self, name, cfg):
|
||||
@ -83,6 +84,7 @@ class MainWindow(QMainWindow):
|
||||
else:
|
||||
item.set_alarm(True)
|
||||
|
||||
|
||||
# Signal callbacks
|
||||
|
||||
def on_make_new_plot(self, *args, **kwargs):
|
||||
@ -101,6 +103,7 @@ class MainWindow(QMainWindow):
|
||||
else:
|
||||
self.plot_multiple_items(selected)
|
||||
|
||||
|
||||
# Plumbing
|
||||
|
||||
def plot_single_item(self, item):
|
||||
@ -115,6 +118,7 @@ class MainWindow(QMainWindow):
|
||||
name = " | ".join(names)
|
||||
self.activate_or_make_subwin(MDISubMultiPlot, name, descs)
|
||||
|
||||
|
||||
#TODO: the following two could be methods to MDIArea?
|
||||
|
||||
def activate_or_make_subwin(self, MDISubType, name, *args, **kwargs):
|
||||
@ -127,3 +131,6 @@ class MainWindow(QMainWindow):
|
||||
def make_subwin(self, MDISubType, name, *args, **kwargs):
|
||||
sub = MDISubType(name, *args, **kwargs)
|
||||
self.mdi.add(sub)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user