diff options
author | flavio <fdanesse@gmail.com> | 2012-02-15 01:31:28 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2012-02-15 01:31:28 (GMT) |
commit | 065e8dcaf5a058545cd46a79e0324762a27108df (patch) | |
tree | b2cb57bc6ef964b9c855289a6f286e7d4366a264 | |
parent | ed81b4d148215322fe806d58e64cd6096b6d8a57 (diff) |
-rw-r--r-- | VennActivity.py | 16 |
1 files changed, 11 insertions, 5 deletions
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 |