From b9b74f2fb79e401b8105733fb87808560187bcda Mon Sep 17 00:00:00 2001 From: Cristhofer Travieso Date: Mon, 25 Jun 2012 20:01:51 +0000 Subject: Agregue los spinbuttons --- 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() -- cgit v0.9.1