Double clicking a function in the navigator causes the first four plots of that

function to be displayed in the main view. If the function has returned less
than four plots the remaining ViewFrames will be cleared.
This commit is contained in:
2006-08-31 10:57:44 +00:00
parent 0b58c5ea28
commit 5c45308279
3 changed files with 32 additions and 6 deletions

View File

@@ -214,7 +214,14 @@ class MainView (gtk.Notebook):
else:
vf = self._large_view
vf.set_view(view)
def set_all_plots(self, plots):
for vf in self._view_frames:
if plots:
vf.set_view(plots.pop())
else:
vf.set_view(None)
def show(self):
for vf in self._view_frames:
vf.show()