Add getter for the current toolbar in Toolbox.

This commit is contained in:
Tomeu Vizoso 2007-10-23 17:40:40 +02:00
parent 3200bad39d
commit f54decf07c

View File

@ -89,3 +89,9 @@ class Toolbox(gtk.VBox):
def set_current_toolbar(self, index): def set_current_toolbar(self, index):
self._notebook.set_current_page(index) self._notebook.set_current_page(index)
def get_current_toolbar(self):
return self._notebook.get_current_page()
current_toolbar = property(get_current_toolbar, set_current_toolbar)