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:
@@ -81,11 +81,17 @@ class FluentApp:
|
||||
self.init_gui()
|
||||
|
||||
def change_plot(self, plot):
|
||||
# add current selection to new plot
|
||||
"""Sets the plot in the currently active ViewFrame. If the plot is already
|
||||
shown in another ViewFrame it will be moved from there."""
|
||||
# Set current selection in the plot before showing it.
|
||||
plot.selection_changed(self.project.get_selection())
|
||||
pt = self.widget_tree.get_widget('main_view')
|
||||
pt.insert_view(plot)
|
||||
|
||||
|
||||
def change_plots(self, plots):
|
||||
"""Changes all plots."""
|
||||
self['main_view'].set_all_plots(plots)
|
||||
|
||||
def get_active_view_frame(self):
|
||||
return self['main_view'].get_active_view_frame()
|
||||
|
||||
|
Reference in New Issue
Block a user