From 065e8dcaf5a058545cd46a79e0324762a27108df Mon Sep 17 00:00:00 2001 From: flavio Date: Wed, 15 Feb 2012 01:31:28 +0000 Subject: Puntaje --- diff --git a/VennActivity.py b/VennActivity.py index 2947696..c871bca 100644 --- a/VennActivity.py +++ b/VennActivity.py @@ -59,7 +59,7 @@ class VentanaGTK(gtk.Window): def reset(self, widget, dato): self.aciertos= 0 self.errores= 0 - print "Aciertos:", self.aciertos, "Errores:", self.errores + self.panel.label.set_text("Aciertos: 0 Errores: 0") def logro(self, widget, dato): imagen= gtk.Image() @@ -77,7 +77,7 @@ class VentanaGTK(gtk.Window): ventana.show_all() ventana.present() gobject.timeout_add(1500, self.close, ventana) - print "Aciertos:", self.aciertos, "Errores:", self.errores + self.panel.label.set_text("Aciertos: %s Errores: %s" % (self.aciertos, self.errores)) def close(self, ventana): ventana.destroy() @@ -92,14 +92,20 @@ class Panel(gtk.HPaned): "RESET":(gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, (gobject.TYPE_BOOLEAN,))} def __init__(self): gtk.HPaned.__init__(self) - self.mapa= Mapa() # Fixed - self.barra_lateral= BarraLateral() # VBox + self.mapa= Mapa() + self.barra_lateral= BarraLateral() scroll= gtk.ScrolledWindow() scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) scroll.add_with_viewport (self.mapa) - self.pack1(scroll, resize=True, shrink=True) + caja= gtk.VBox() + barramenu= gtk.HBox() + self.label= gtk.Label("Aciertos: 0 Errores: 0") + barramenu.pack_end(self.label, False, False) + caja.pack_start(barramenu, False, False) + caja.pack_start(scroll, True, True) + self.pack1(caja, resize=True, shrink=True) self.pack2(self.barra_lateral, resize=False, shrink=True) self.barra_lateral.connect("SET_CONJUNTOS", self.set_conjuntos) # cuando se selecciona un tipo de conjuntos -- cgit v0.9.1