Add getter for the current toolbar in Toolbox.
This commit is contained in:
parent
3200bad39d
commit
f54decf07c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user