diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-19 16:53:55 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-19 16:53:55 (GMT) |
commit | cb997a5264bd78db73c558595126c89215718537 (patch) | |
tree | 3f54ea6649c282e34d42d848c51968ac067b93c4 /tests | |
parent | d223579f22c4327eec367b0362cc18f214137e76 (diff) |
More work on the new toolbars
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test-ui.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test-ui.py b/tests/test-ui.py index 6c1f667..ad324cc 100755 --- a/tests/test-ui.py +++ b/tests/test-ui.py @@ -18,11 +18,29 @@ import gtk + +class Toolbar(gtk.Toolbar): + def __init__(self): + gtk.Toolbar.__init__(self) + + icon = gtk.ToolButton() + icon.set_icon_name('text-format-bold') + self.insert(icon, -1) + icon.show() + class Window(gtk.Window): def __init__(self): gtk.Window.__init__(self) self.set_default_size(800, 600) + box = gtk.VBox() + self.add(box) + box.show() + + toolbar = Toolbar() + box.pack_start(toolbar, False) + toolbar.show() + window = Window() window.connect("destroy", lambda w: gtk.main_quit()) window.show() |