diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-01-09 01:10:56 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-01-09 01:10:56 +0000 |
| commit | 58f7595413ff237526e5342d2346255d9396e60d (patch) | |
| tree | 6d7d66ad005e34f55af9d034a4746fa634b13b08 /lib/python/Screens/Screen.py | |
| parent | adb244ff095e3b57b8375fd4480edb6069c2274b (diff) | |
| download | enigma2-58f7595413ff237526e5342d2346255d9396e60d.tar.gz enigma2-58f7595413ff237526e5342d2346255d9396e60d.zip | |
allow 'stand-alone' screens: they will receive execBegin/execEnd calls even when not being active on screen (for example for web screens)
Diffstat (limited to 'lib/python/Screens/Screen.py')
| -rw-r--r-- | lib/python/Screens/Screen.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py index 53492918..797acbc9 100644 --- a/lib/python/Screens/Screen.py +++ b/lib/python/Screens/Screen.py @@ -31,6 +31,10 @@ class Screen(dict, HTMLSkin, GUISkin): self.helpList = [ ] self.close_on_next_exec = None + + # stand alone screens (for example web screens) + # don't care about having or not having focus. + self.stand_alone = False def execBegin(self): self.active_components = [ ] @@ -44,7 +48,7 @@ class Screen(dict, HTMLSkin, GUISkin): self.onFirstExecBegin = [] for x in self.onExecBegin + single: x() - if self.session.current_dialog != self: + if not self.stand_alone and self.session.current_dialog != self: return # assert self.session == None, "a screen can only exec once per time" @@ -52,7 +56,7 @@ class Screen(dict, HTMLSkin, GUISkin): for val in self.values() + self.renderer: val.execBegin() - if self.session.current_dialog != self: + if not self.stand_alone and self.session.current_dialog != self: return self.active_components.append(val) |
