diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-03-02 02:14:10 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-03-02 02:14:10 +0000 |
| commit | 6c2d3fc303542b7f77f4350974acf781a1b91c30 (patch) | |
| tree | 356a431d479c5dff6fb6aaea8000bbb71a8c58d0 /lib/python/Screens/Screen.py | |
| parent | 0a3c667bfb6a1552975c1fd2325e7435363c2bc9 (diff) | |
| download | enigma2-6c2d3fc303542b7f77f4350974acf781a1b91c30.tar.gz enigma2-6c2d3fc303542b7f77f4350974acf781a1b91c30.zip | |
minimally improved LCD support
Diffstat (limited to 'lib/python/Screens/Screen.py')
| -rw-r--r-- | lib/python/Screens/Screen.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py index a8d0b048..8398dadd 100644 --- a/lib/python/Screens/Screen.py +++ b/lib/python/Screens/Screen.py @@ -29,15 +29,15 @@ class Screen(dict, HTMLSkin, GUISkin): self.active_components = [ ] for x in self.onExecBegin: x() - if self.session.currentDialog != self: + if self.session.current_dialog != self: return -# assert self.session == None, "a screen can only exec one per time" +# assert self.session == None, "a screen can only exec once per time" # self.session = session for (name, val) in self.items(): val.execBegin() - if self.session.currentDialog != self: + if self.session.current_dialog != self: return self.active_components.append(val) @@ -57,6 +57,7 @@ class Screen(dict, HTMLSkin, GUISkin): # never call this directly - it will be called from the session! def doClose(self): + self.hide() for x in self.onClose: x() @@ -84,6 +85,9 @@ class Screen(dict, HTMLSkin, GUISkin): self.instance.show() for x in self.onShow: x() + for (name, val) in self.items(): + if isinstance(val, GUIComponent): + val.onShow() def hide(self): if not self.shown: @@ -92,3 +96,6 @@ class Screen(dict, HTMLSkin, GUISkin): self.instance.hide() for x in self.onHide: x() + for (name, val) in self.items(): + if isinstance(val, GUIComponent): + val.onHide() |
