naming
This commit is contained in:
10
mainwin.py
10
mainwin.py
@ -42,9 +42,9 @@ class MainWindow(QMainWindow):
|
||||
|
||||
|
||||
def new_plot(self, name, cfg):
|
||||
pd = PlotDescription(**cfg)
|
||||
self.lst.add(name, pd)
|
||||
self.sig_make_new_plot.emit(name, pd)
|
||||
desc = PlotDescription(**cfg)
|
||||
self.lst.add(name, desc)
|
||||
self.sig_make_new_plot.emit(name, desc)
|
||||
|
||||
|
||||
def append_data(self, name, point):
|
||||
@ -52,8 +52,8 @@ class MainWindow(QMainWindow):
|
||||
lst.append(name, point)
|
||||
for sub in self.mdi.subWindowList():
|
||||
if sub.windowTitle() == name:
|
||||
pd = lst.data[name]
|
||||
sub.plot.setData(*pd.data)
|
||||
desc = lst.data[name]
|
||||
sub.plot.setData(*desc.data)
|
||||
|
||||
|
||||
def on_select_list_item(self, index):
|
||||
|
Reference in New Issue
Block a user