kuuko pushed a commit to branch master. http://git.enlightenment.org/apps/epour.git/commit/?id=b6d117af8440580c2c8449fe97a0a33ba10ebcbf
commit b6d117af8440580c2c8449fe97a0a33ba10ebcbf Author: Kai Huuhko <[email protected]> Date: Sat Jul 19 22:52:40 2014 +0300 Delete update timers when tearing down gui --- epour/gui/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epour/gui/__init__.py b/epour/gui/__init__.py index 19aadd1..a790b6d 100644 --- a/epour/gui/__init__.py +++ b/epour/gui/__init__.py @@ -233,6 +233,7 @@ class MainInterface(object): self.win.show() self.timer = Timer(1.0, self.update) + self.win.on_del_add(lambda x: self.timer.delete()) elm.run() elm.shutdown() @@ -362,6 +363,7 @@ class SessionStatus(Table): self.show() self.update_timer = Timer(1.0, self.update) + self.on_del_add(lambda x: self.update_timer.delete()) def update(self): s = self.session.status() @@ -375,8 +377,8 @@ class SessionStatus(Table): icon = "player_play" try: self.ses_pause_ic.standard = icon - except Exception: - log.debug("") + except Exception as e: + log.debug(e) return True --
