Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristhofer Travieso <cristhofert97@gmail.com>2012-06-25 20:01:51 (GMT)
committer Cristhofer Travieso <cristhofert97@gmail.com>2012-06-25 20:01:51 (GMT)
commitb9b74f2fb79e401b8105733fb87808560187bcda (patch)
tree7f6cebfb4c6b1ad0287ef66343aed39f45de515c
parent72a64861720a53fd4852952d1429cb5054e1f91c (diff)
Agregue los spinbuttons
-rw-r--r--Activity.py34
1 files changed, 26 insertions, 8 deletions
diff --git a/Activity.py b/Activity.py
index dba6b49..6e87f97 100644
--- a/Activity.py
+++ b/Activity.py
@@ -106,14 +106,32 @@ class Canvas(gtk.VBox):
def __init__(self):
gtk.VBox.__init__(self)
- self._hbox = gtk.HBox()
+ self._hbox1 = gtk.HBox()
+ self._hbox2 = gtk.HBox()
self.combo1 = gtk.ComboBox()
self.combo2 = gtk.ComboBox()
-
- self._hbox.pack_start(gtk.Label("Of "), True)
- self._hbox.pack_start(self.combo1, True)
- self._hbox.pack_start(gtk.Label("to"), True)
- self._hbox.pack_start(self.combo2, True)
-
- self.pack_start(self._hbox, False)
+ adjustment = gtk.Adjustment(value=1, liwer=None, upper=None,
+ step_incr=0.5, page_incr=1)
+
+ self.spin_btn1 = gtk.SpinButton(adjustment, 1.0, )
+ self.spin_btn2 = gtk.SpinButton(adjustment, 1.0, )
+ self.separator1 = gtk.Separator()
+ self.separator1.set_expand(True)
+ self.separator1.set_draw(False)
+ self.separator2 = gtk.Separator()
+ self.separator2.set_expand(True)
+ self.separator2.set_draw(False)
+
+ self._hbox1.pack_start(gtk.Label("Of "), True)
+ self._hbox1.pack_start(self.combo1, True)
+ self._hbox1.pack_start(gtk.Label("to"), True)
+ self._hbox1.pack_start(self.combo2, True)
+
+ self._hbox2.pack_start(self.separator1, True)
+ self._hbox2.pack_start(self.spin_btn1)
+ self._hbox2.pack_start(self.separator2, True)
+ self._hbox2.pack_start(self.spin_btn2)
+
+ self.pack_start(self._hbox2, False)
+ self.pack_start(self._hbox1, False)
self.show_all()