Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpamarilla <pj.amarilla@gmail.com>2013-01-27 22:26:17 (GMT)
committer pamarilla <pj.amarilla@gmail.com>2013-01-27 22:26:17 (GMT)
commit75a7059da06f1a6de8fee72557b2aa11632447a3 (patch)
tree9b3cfc0170cf222dc7d085053916dcd91f6d7c5f
parentb3a362aee9c789f32f9860c0bfb4b6d775b7c446 (diff)
reparado los errores en la falta de definicion de un contador y en obtener el focus al comienzo de la actividad
-rw-r--r--Expresar.activity/Expresar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Expresar.activity/Expresar.py b/Expresar.activity/Expresar.py
index d7aace6..557de32 100644
--- a/Expresar.activity/Expresar.py
+++ b/Expresar.activity/Expresar.py
@@ -52,6 +52,7 @@ class Expresar(activity.Activity):
self.set_toolbar_box(toolbar_box)
toolbar_box.show()
+ self._pressButton_counter = 0
self.listaSecciones = []
parsear(self.listaSecciones)
self.lenghtSecciones = int(math.sqrt(len(self.listaSecciones)))
@@ -108,7 +109,7 @@ class Expresar(activity.Activity):
self._button_list[self._button_index_2 - 1].modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('green'))
elif (self._pressButton_counter == 0):
self._button_index = (self._button_index) % len(buttons)
-
+ self._button_list[0].grab_focus()
self._button_list = buttons[self._button_index:self._button_index+LENGHT]
for i in self._button_list: