From 91b9b2cf986f9e3812165150daa4ed7dcbb767dd Mon Sep 17 00:00:00 2001 From: Victor Cubas Date: Thu, 24 Jan 2013 20:48:09 +0000 Subject: Agregamos incono --- diff --git a/activity.py b/activity.py index ff46269..de7dfef 100644 --- a/activity.py +++ b/activity.py @@ -132,34 +132,29 @@ class PiensaEscribeActivity(activity.Activity): vbox.show_all() def resetear(self, imagen1, imagen2, button1, button2, button3): - imagen1.set_from_file(listImagenes[self.indice_imagen]) - self.indice_imagen += 1 - imagen2.set_from_file(listImagenes[self.indice_imagen]) - self.indice_imagen += 1 + imagen1.set_from_file(listImagenes[self.indice_imagen]) + self.indice_imagen += 1 + imagen2.set_from_file(listImagenes[self.indice_imagen]) + self.indice_imagen += 1 - button1.set_label(label_opciones[self.indice_opciones]) - self.indice_opciones += 1 - button2.set_label(label_opciones[self.indice_opciones]) - self.indice_opciones += 1 - button3.set_label(label_opciones[self.indice_opciones]) - self.indice_opciones += 1 - print self.indice_resp_correcta - self.indice_resp_correcta += 1 - print self.indice_resp_correcta + button1.set_label(label_opciones[self.indice_opciones]) + self.indice_opciones += 1 + button2.set_label(label_opciones[self.indice_opciones]) + self.indice_opciones += 1 + button3.set_label(label_opciones[self.indice_opciones]) + self.indice_opciones += 1 + self.indice_resp_correcta += 1 + def __correcto_cb(self, button, clave, imagen1, imagen2, button1, button2, button3): - if button.get_label() == clave: - #print clave - voice.say('Opcion correcta') - #self.indice_resp_correcta += 1 - self.resetear(imagen1, imagen2, button1, button2, button3) - print self.indice_resp_correcta - else: - print clave - voice.say('Opcion incorrecta') + if button.get_label() == clave: + #print clave + voice.say('Opcion correcta') + #self.indice_resp_correcta += 1 + self.resetear(imagen1, imagen2, button1, button2, button3) + else: + voice.say('Opcion incorrecta') def __sobre_boton_cb(self, button): voice.say(button.get_label()) - - -- cgit v0.9.1