From 55dadd224015f0625f26e8fae2c4ec01b2d9fe8f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 25 Jul 2011 23:35:31 -0400 Subject: [PATCH] add a toolbar --- Window.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Window.py b/Window.py index 6298c18..8048c6e 100644 --- a/Window.py +++ b/Window.py @@ -19,9 +19,19 @@ class Window: sw = SketchWidget(ss, self.window) + self.toolbar = gtk.Toolbar() + self.toolbar.set_style(gtk.TOOLBAR_BOTH) + self.select_button = gtk.ToggleToolButton() + self.select_button.set_label('Select') + self.toolbar.insert(self.select_button, -1) + self.line_button = gtk.ToggleToolButton() + self.line_button.set_label('Line') + self.toolbar.insert(self.line_button, -1) + self.statusbar = gtk.Statusbar() vbox = gtk.VBox() + vbox.pack_start(self.toolbar, expand = False) vbox.pack_start(sw.widget, expand = True) vbox.pack_start(self.statusbar, expand = False)