Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-07-13 02:58:49 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-07-13 02:58:49 (GMT)
commit5d2c5b98fff34eed18f7aede574fe2eeea8cd664 (patch)
treeeb98b6e73e2ac17349a9f5837175ccbe67c17612 /examples
parent44a8ecd8363960b16fa1fe522fc2fb539d939784 (diff)
Do not hide sub-widget when sub-palette was opened
Diffstat (limited to 'examples')
-rw-r--r--examples/toolbar.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/toolbar.py b/examples/toolbar.py
index ad07f37..66c09f0 100644
--- a/examples/toolbar.py
+++ b/examples/toolbar.py
@@ -1,5 +1,6 @@
import gtk
+from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.toolbar import Toolbar, ToolbarButton
from sugar.graphics import style
@@ -33,5 +34,17 @@ tollbarbutton_3 = ToolbarButton(
icon_name='activity-journal')
toolbar.top.insert(tollbarbutton_3, -1)
+subbar = gtk.Toolbar()
+subbutton = ToolButton(
+ icon_name='document-send',
+ tooltip='document-send')
+subbar.insert(subbutton, -1)
+subbar.show_all()
+
+tollbarbutton_4 = ToolbarButton(
+ page=subbar,
+ icon_name='document-save')
+toolbar.top.insert(tollbarbutton_4, -1)
+
window.show_all()
gtk.main()