Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: