git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hide Timer: delete onClose
[enigma2.git]
/
lib
/
python
/
Screens
/
Screen.py
diff --git
a/lib/python/Screens/Screen.py
b/lib/python/Screens/Screen.py
index e9f9affda207c050fbaf1ac03da7ba541ae57dfa..b1e5a51e2da5f4d7e61c7569f0c4f0aa8b8ae7b3 100644
(file)
--- a/
lib/python/Screens/Screen.py
+++ b/
lib/python/Screens/Screen.py
@@
-11,6
+11,8
@@
class Screen(dict, HTMLSkin, GUISkin):
self.session = session
GUISkin.__init__(self)
self.session = session
GUISkin.__init__(self)
+ self.onClose = [ ]
+
# in order to support screens *without* a help,
# we need the list in every screen. how ironic.
self.helpList = [ ]
# in order to support screens *without* a help,
# we need the list in every screen. how ironic.
self.helpList = [ ]
@@
-29,6
+31,9
@@
class Screen(dict, HTMLSkin, GUISkin):
# never call this directly - it will be called from the session!
def doClose(self):
# never call this directly - it will be called from the session!
def doClose(self):
+ for x in self.onClose:
+ x()
+
# fixup circular references
del self.helpList
GUISkin.close(self)
# fixup circular references
del self.helpList
GUISkin.close(self)