diff options
author | Nat <natcl@hotmail.com> | 2007-07-16 20:41:54 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-16 20:41:54 (GMT) |
commit | a2f7a2b41791c2222b5b5a286dd71ee7d0fef2cd (patch) | |
tree | abb52f7fb85f802a439cecb30da6f07124cb9847 /TamTam.py | |
parent | a3104b69e94db031fa10300a025ba7d75c820768 (diff) |
cleanup
Diffstat (limited to 'TamTam.py')
-rwxr-xr-x | TamTam.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -97,17 +97,17 @@ class TamTam(Activity): pass def set_mode(self, mode, arg = None): if Config.DEBUG: print 'DEBUG: TamTam::set_mode from', self.mode, 'to', mode - + + if mode == 'quit': + self.close() # Save and cleanup + self.destroy() + if self.mode != None: self.modeList[ self.mode ].onDeactivate() self.remove( self.modeList[ self.mode ] ) self.mode = None self.trackpad.setContext(mode) - - if mode == 'quit': - self.close() # Save and cleanup - self.destroy() if mode == 'welcome': if not (mode in self.modeList): |