diff options
author | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-06-28 11:55:07 (GMT) |
---|---|---|
committer | Cristhofer Travieso <cristhofert97@gmail.com> | 2012-06-28 11:55:07 (GMT) |
commit | cdfb8ba7491fe9c31b6f74e63ad1972b92b5ef1a (patch) | |
tree | 335e940612f5db1d3a15a259ce933efcfb95735f | |
parent | b9b74f2fb79e401b8105733fb87808560187bcda (diff) |
Arregle los errores con los spinbuttons
-rw-r--r-- | Activity.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Activity.py b/Activity.py index 6e87f97..d7eb1cc 100644 --- a/Activity.py +++ b/Activity.py @@ -110,28 +110,28 @@ class Canvas(gtk.VBox): self._hbox2 = gtk.HBox() self.combo1 = gtk.ComboBox() self.combo2 = gtk.ComboBox() - 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) + adjustment = gtk.Adjustment(value=1.0, lower=0.0, upper=0.0, + step_incr=0.5, page_incr=1.0, page_size=0.0) + #commit arregle un error con adjusment + self.spin_btn1 = gtk.SpinButton(adjustment, 1.0, 0) + self.spin_btn2 = gtk.SpinButton(adjustment, 1.0, 0) + #self.separator1 = gtk.VSeparator() + #self.separator1.set_expand(True) + #self.separator1.set_draw(False) + #self.separator2 = gtk.VSeparator() + #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._hbox2.pack_start(self.separator1, True) + self._hbox2.pack_start(self.spin_btn1, False) + #self._hbox2.pack_start(self.separator2, True) + self._hbox2.pack_start(self.spin_btn2, False) - self.pack_start(self._hbox2, False) self.pack_start(self._hbox1, False) + self.pack_start(self._hbox2, False) self.show_all() |