Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguz@sugarlabs.org>2012-06-22 05:24:30 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-06-22 05:24:30 (GMT)
commit6f706a0cb7ac719aaf71461d9d4af44953bf3083 (patch)
treef88a858dba1373d143c3a5832eadd3fc63443dc2
parente44a29979d56ad5f47f45b0d4819878543f5c8fd (diff)
Use Box instead of HBox/VBox
-rw-r--r--helpbutton.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/helpbutton.py b/helpbutton.py
index 1f01851..8507e39 100644
--- a/helpbutton.py
+++ b/helpbutton.py
@@ -46,10 +46,11 @@ class HelpButton(Gtk.ToolItem):
sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
self._max_text_width = int(Gdk.Screen.width() / 3) - 600
- self._vbox = Gtk.VBox()
+ self._vbox = Gtk.Box()
+ self._vbox.set_orientation(Gtk.Orientation.VERTICAL)
self._vbox.set_homogeneous(False)
- hbox = Gtk.HBox()
+ hbox = Gtk.Box()
hbox.pack_start(self._vbox, False, True, 0)
sw.add_with_viewport(hbox)
@@ -63,7 +64,7 @@ class HelpButton(Gtk.ToolItem):
self._palette.popup(immediate=True, state=1)
def add_section(self, section_text):
- hbox = Gtk.HBox()
+ hbox = Gtk.Box()
label = Gtk.Label()
label.set_use_markup(True)
label.set_markup('<b>%s</b>' % section_text)
@@ -73,7 +74,7 @@ class HelpButton(Gtk.ToolItem):
self._vbox.pack_start(hbox, False, False, padding=5)
def add_paragraph(self, text, icon=None):
- hbox = Gtk.HBox()
+ hbox = Gtk.Box()
label = Gtk.Label(label=text)
label.set_justify(Gtk.Justification.LEFT)
label.set_line_wrap(True)