Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed a "main.project" bug

This commit is contained in:
Arnar Flatberg 2007-08-02 10:19:16 +00:00
parent f12fe23c1b
commit dc3893eecc
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class NavigatorMenu(gtk.Menu):
#project._selection_observers.append(plot) #project._selection_observers.append(plot)
def on_plot_hist(self, item, navigator): def on_plot_hist(self, item, navigator):
project = navigator.project project = main.project
plot = plots.HistogramPlot(self.dataset, name='Histogram') plot = plots.HistogramPlot(self.dataset, name='Histogram')
icon = fluents.icon_factory.get("line_plot") icon = fluents.icon_factory.get("line_plot")
project.data_tree_insert(self.tree_iter, 'Histogram', plot, None, "black", icon) project.data_tree_insert(self.tree_iter, 'Histogram', plot, None, "black", icon)