diff options
author | Cristian Garcia <cristian99garcia@gmail.com> | 2013-08-11 17:28:59 (GMT) |
---|---|---|
committer | Cristian Garcia <cristian99garcia@gmail.com> | 2013-08-11 17:28:59 (GMT) |
commit | 7db862dc5543494808241512aaccebf052c79293 (patch) | |
tree | 1306a06f1cff5fa0146299b6055657c7f9a094fe /window.py | |
parent | 99e70cd06defc860a4c4ee4c0468e9b9a0bce5c0 (diff) |
Arreglando de todo un poco
Diffstat (limited to 'window.py')
-rw-r--r-- | window.py | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -62,6 +62,12 @@ class CExplorer(Gtk.Window): self.area_montajes = AreadeMontajes(self) self.b_estado = BarradeEstado() + item = Gtk.ToolItem() + switch = Gtk.Switch() + switch.connect('notify::active', self.change_ocultos) + item.add(switch) + self.toolbar.add(item) + scrolled_montajes = Gtk.ScrolledWindow() scrolled = Gtk.ScrolledWindow() paned = Gtk.Paned() @@ -297,17 +303,10 @@ class CExplorer(Gtk.Window): self.entrada.activate() self.update() - def change_ocultos(self, widget): + def change_ocultos(self, widget, active): """Muestra o no muestra archivos ocultos""" - self.ocultos = not self.ocultos - - if self.ocultos: - widget.set_icon_name(Gtk.STOCK_NO) - - else: - widget.set_icon_name(Gtk.STOCK_YES) - + self.ocultos = widget.get_active() self.update() def get_nueva_direccion(self): |