From b44c3ff96ad305e2d5c0eb87ce3aa4a9abe3cb77 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 18 Nov 2005 16:08:53 +0000 Subject: hide Timer: delete onClose --- lib/python/Screens/Screen.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/python/Screens/Screen.py') diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py index e9f9affd..b1e5a51e 100644 --- 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.onClose = [ ] + # 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): + for x in self.onClose: + x() + # fixup circular references del self.helpList GUISkin.close(self) -- cgit v1.2.3