From d6445af2c8e403468e1f248a12af44d3a78fbacb Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 29 Apr 2007 21:11:59 +0200 Subject: [PATCH] Add method Toolbox.remove_toolbar(). --- sugar/graphics/toolbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sugar/graphics/toolbox.py b/sugar/graphics/toolbox.py index 94391208..441d157b 100644 --- a/sugar/graphics/toolbox.py +++ b/sugar/graphics/toolbox.py @@ -33,3 +33,6 @@ class Toolbox(gtk.VBox): def add_toolbar(self, name, toolbar): self._notebook.append_page(toolbar, gtk.Label(name)) + + def remove_toolbar(self, index): + self._notebook.remove_page(index)