Add more toolbars and a text area

This commit is contained in:
Marco Pesenti Gritti
2007-04-20 15:38:34 +02:00
parent f6a93fd8e9
commit 76e375749a
3 changed files with 69 additions and 3 deletions
+1
View File
@@ -24,6 +24,7 @@ class Toolbox(gtk.VBox):
self._notebook = gtk.Notebook()
self._notebook.set_tab_pos(gtk.POS_BOTTOM)
self._notebook.set_show_border(False)
self.pack_start(self._notebook)
self._notebook.show()
+12 -1
View File
@@ -31,8 +31,19 @@ class Window(gtk.Window):
vbox.pack_start(self.toolbox, False)
self.toolbox.show()
self._canvas_box = gtk.VBox()
vbox.pack_start(self._canvas_box)
self._canvas_box.show()
self.canvas = hippo.Canvas()
vbox.pack_start(self.canvas)
self._canvas_box.pack_start(self.canvas)
self.canvas.show()
vbox.show()
def set_canvas(self, canvas):
if self.canvas:
self._canvas_box.remove(self.canvas)
self._canvas_box.add(canvas)
self.canvas = canvas