diff options
author | Cristian García <cristian99garcia@gmail.com> | 2013-04-16 16:34:31 (GMT) |
---|---|---|
committer | Cristian García <cristian99garcia@gmail.com> | 2013-04-16 16:34:31 (GMT) |
commit | 86832793666cd99c6a344db258894ea580804f99 (patch) | |
tree | d5e4e33906f121789fa403a34d40a631af7f216b /Widgets.py | |
parent | 8864887abc27e50b5b4955949ba3068461fccc01 (diff) |
Emprolijando
Diffstat (limited to 'Widgets.py')
-rw-r--r-- | Widgets.py | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -146,6 +146,8 @@ class Area(Gtk.IconView): __gsignals__ = { 'cambio-de-direccion': (GObject.SIGNAL_RUN_FIRST, + GObject.TYPE_NONE, (GObject.TYPE_STRING,)), + 'cambio-de-texto': (GObject.SIGNAL_RUN_FIRST, GObject.TYPE_NONE, (GObject.TYPE_STRING,))} def __init__(self, padre): @@ -167,7 +169,7 @@ class Area(Gtk.IconView): self.connect('button-press-event', self.click) self.connect('selection-changed', self.changed) - def changed(self, *args): + def changed(self, widget): if self.get_selected_items(): @@ -185,7 +187,11 @@ class Area(Gtk.IconView): archivos = Archivos.get_tamanio(direccion) string = ' - ' + archivos - self.padre.b_estado.set_text('Se ha seleccionado: ', direccion, string) + self.padre.b_estado.set_text('Se ha seleccionado: ', + direccion, string) + + else: + self.padre.b_estado.set_text('') def agregar(self, nombre, direccion): """Agrega el icono de una carpeta o un archivo""" |