Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Yet another bugfix on the plot updates. View frames will now be updated from

the upper left corner, horizontally first.
This commit is contained in:
Einar Ryeng 2006-10-17 10:37:46 +00:00
parent 4b8ff16bbf
commit 42f6fd7440
1 changed files with 6 additions and 5 deletions

View File

@ -261,11 +261,12 @@ class MainView (gtk.Notebook):
vf.set_view(view) vf.set_view(view)
def set_all_plots(self, plots): def set_all_plots(self, plots):
for vf in self._view_frames: for y in range(self._views.ysize):
if plots: for x in range(self._views.xsize):
vf.set_view(plots.pop()) if plots:
else: self._views[x, y].set_view(plots.pop())
vf.set_view(None) else:
self._views[x, y].set_view(None)
def show(self): def show(self):
for vf in self._view_frames: for vf in self._view_frames: