Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Yasser González Parajón <yurigonzalezni@gmail.com>2010-08-25 16:07:49 (GMT)
committer Yuri Yasser González Parajón <yurigonzalezni@gmail.com>2010-08-25 16:07:49 (GMT)
commitac2be964c34cb88af9e7dad6329c11667a635c1d (patch)
tree763aff2c7af30a754344cf2c53c26abaa85a9fea
parent700752799e6b304eee756cb668f12d4ac55a5604 (diff)
Funcionalidad Completa de Dictado
-rw-r--r--Dictado_1.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Dictado_1.py b/Dictado_1.py
index 6fd96c5..7c3b48c 100644
--- a/Dictado_1.py
+++ b/Dictado_1.py
@@ -78,12 +78,18 @@ class Dictado:
self.contenedor_izq.pack_start(self.hbox_repeat, False, False, 0)
self.hbox_repeat.show()
+ self.imagen = gtk.Image()
+
#Aqui va entry y aceptar
self.hbox = gtk.HBox()
self.texto = gtk.Entry(100)
self.texto.set_sensitive(0)
self.hbox.pack_start(self.texto, False, False, 0)
+
+ self.hbox.pack_start(self.imagen, False, False, 0)
+ self.imagen.show()
+
self.texto.show()
self.word = self.texto
@@ -112,6 +118,11 @@ class Dictado:
self.num_clic = 0
self.aciertos = 0
+ def _cambiar_imagen(self, level):
+ ruta = 'resources/%s.png' % level
+ _logger.debug('level: %s' % level)
+ self.imagen.set_from_file(ruta)
+
def _again_cb(self, widget):
self._activa_desactiva_cb(1)
self._act_desact_operacion_cb(0)