add a toolbar
This commit is contained in:
parent
edd8fd6107
commit
55dadd2240
10
Window.py
10
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user