Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Always show full toolbar on ScatterPlots.

This commit is contained in:
Einar Ryeng 2006-08-31 15:45:33 +00:00
parent a374510cfc
commit 92fe9d8e75
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ class ViewFrame (gtk.Frame):
treestore, path = selection.tree_get_row_drag_data() treestore, path = selection.tree_get_row_drag_data()
iter = treestore.get_iter(path) iter = treestore.get_iter(path)
obj = treestore.get_value(iter,2) obj = treestore.get_value(iter,2)
if isinstance(obj, Plot): if isinstance(obj, Plot):
self.set_view(obj) self.set_view(obj)
self.focus() self.focus()
@ -569,6 +570,7 @@ has no color and size options."""
# create toolbar # create toolbar
self._toolbar = PlotToolbar(self.canvas, None) self._toolbar = PlotToolbar(self.canvas, None)
self._toolbar.chk.connect ('toggled' ,self.set_selection_sensitive) self._toolbar.chk.connect ('toggled' ,self.set_selection_sensitive)
self._toolbar.set_property('show-arrow', False)
self._toolbar.set_select_callback(self.rectangle_select_callback) self._toolbar.set_select_callback(self.rectangle_select_callback)
def get_toolbar(self): def get_toolbar(self):