diff options
author | flavio <fdanesse@gmail.com> | 2013-06-11 00:22:01 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2013-06-11 00:22:01 (GMT) |
commit | 576de9ffcf64af6b6bf2fdcfe18d35171de4df8b (patch) | |
tree | 03b9c4c5173856775f1380a9a0bca9507a17820e | |
parent | 89d645dd5630ae1a9d5e2e7170a15adccbd29e14 (diff) |
Adding Button Continue to survey general type
-rwxr-xr-x | CeibalEncuesta/gtk3/Widgets.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CeibalEncuesta/gtk3/Widgets.py b/CeibalEncuesta/gtk3/Widgets.py index 37ab47d..8aa6186 100755 --- a/CeibalEncuesta/gtk3/Widgets.py +++ b/CeibalEncuesta/gtk3/Widgets.py @@ -1672,9 +1672,11 @@ class GeneralWidget(Gtk.Box): box = Gtk.Box(orientation = Gtk.Orientation.HORIZONTAL) #anterior = Gtk.Button("Anterior") + continuar = Gtk.Button("Continuar") siguiente = Gtk.Button("Siguiente") #box.pack_start(anterior, True, True, 0) + box.pack_start(continuar, True, True, 0) box.pack_start(siguiente, True, True, 0) self.pack_start(box, False, False, 0) @@ -1687,6 +1689,7 @@ class GeneralWidget(Gtk.Box): self.__new_group(None, grupos[0]) # Forzar nueva lista #anterior.connect("clicked", self.__anterior) + continuar.connect("clicked", self.__continuar) siguiente.connect("clicked", self.__siguiente) #def __anterior(self, widget): @@ -1761,6 +1764,10 @@ class GeneralWidget(Gtk.Box): self.scroll_list.set_size_request(200,-1) + def __continuar(self, widget): + + self.get_parent().get_parent().get_parent().hide() + def __new_selection(self, widget, encuestado): """ Cuando el usuario cambia de Encuestado. |