Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Expresar.activity/Expresar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Expresar.activity/Expresar.py')
-rw-r--r--Expresar.activity/Expresar.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Expresar.activity/Expresar.py b/Expresar.activity/Expresar.py
index 557de32..acb958b 100644
--- a/Expresar.activity/Expresar.py
+++ b/Expresar.activity/Expresar.py
@@ -81,6 +81,9 @@ class Expresar(activity.Activity):
for fila in range(LENGHT):
#boton = gtk.Button(str(fila)+"-"+str(colu))
boton = gtk.Button(self.listaSecciones[indiceListaSecciones][1])
+ image = gtk.Image()
+ image.set_from_file("icons/"+str(self.listaSecciones[indiceListaSecciones][2]))
+ boton.set_image(image)
boton.connect('key-press-event', self.__pressButton_count)
table.attach(boton, inicio_left, fin_right, inicio_top, fin_bottom)
boton.show()
@@ -109,20 +112,20 @@ 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]
-
+ self._button_list[0].grab_focus()
for i in self._button_list:
i.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('green'))
for cero in range(self._button_index):
- buttons[cero].modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('gray'))
+ buttons[cero].modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('blue'))
self._button_index = self._button_index + LENGHT
indice = self._button_index
while indice < len(buttons):
- buttons[indice].modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('gray'))
+ buttons[indice].modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color('blue'))
indice = indice + 1
else: