split loop
This commit is contained in:
11
director.py
11
director.py
@ -40,8 +40,14 @@ class Director:
|
||||
def add_pvs(self, pvnames):
|
||||
figs_col = column()
|
||||
for line in pvnames:
|
||||
figs_row = self.make_pvs_row(line)
|
||||
figs_col.children.append(figs_row)
|
||||
self.plot_container.children.insert(0, figs_col)
|
||||
|
||||
|
||||
def make_pvs_row(self, pvnames):
|
||||
figs_row = row()
|
||||
for n in line:
|
||||
for n in pvnames:
|
||||
print("Add PV:", n)
|
||||
try:
|
||||
a = Actor(figs_row, n)
|
||||
@ -52,8 +58,7 @@ class Director:
|
||||
return lambda: self.remove_plot(x)
|
||||
a.plt.on_click_close(make_remover(a))
|
||||
self.add_plot(a)
|
||||
figs_col.children.append(figs_row)
|
||||
self.plot_container.children.insert(0, figs_col)
|
||||
return figs_row
|
||||
|
||||
|
||||
def add_plot(self, a):
|
||||
|
Reference in New Issue
Block a user