diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-06-15 17:38:33 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-06-15 17:38:33 +0000 |
| commit | 36dc37e5d0c9ef8fc5f923ad38ee6cc98f316556 (patch) | |
| tree | 51c8335f2a9548c67cc0b427944db3a9bbc0d1a3 /lib/python | |
| parent | 8e83c20bab185fd0e7bd527cb92ebe733db24d9c (diff) | |
| download | enigma2-36dc37e5d0c9ef8fc5f923ad38ee6cc98f316556.tar.gz enigma2-36dc37e5d0c9ef8fc5f923ad38ee6cc98f316556.zip | |
support for renderer
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/GUISkin.py | 2 | ||||
| -rw-r--r-- | lib/python/Screens/Screen.py | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 3aa9c851..406cd097 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -9,7 +9,7 @@ class GUISkin: self.summaries = [ ] def createGUIScreen(self, parent, desktop): - for (name, val) in self.items(): + for val in self.values() + self.renderer: if isinstance(val, GUIComponent): val.GUIcreate(parent) val.applySkin(desktop) diff --git a/lib/python/Screens/Screen.py b/lib/python/Screens/Screen.py index e6abdef9..bbc6b1ec 100644 --- a/lib/python/Screens/Screen.py +++ b/lib/python/Screens/Screen.py @@ -35,7 +35,7 @@ class Screen(dict, HTMLSkin, GUISkin): # assert self.session == None, "a screen can only exec once per time" # self.session = session - for (name, val) in self.items(): + for val in self.values() + self.renderer: val.execBegin() if self.session.current_dialog != self: return @@ -70,6 +70,11 @@ class Screen(dict, HTMLSkin, GUISkin): val.destroy() del self[name] + for val in self.renderer: + val.destroy() + + self.renderer = [ ] + # really delete all elements now self.__dict__.clear() @@ -86,7 +91,7 @@ class Screen(dict, HTMLSkin, GUISkin): self.instance.show() for x in self.onShow: x() - for (name, val) in self.items(): + for val in self.values() + self.renderer: if isinstance(val, GUIComponent): val.onShow() @@ -97,6 +102,6 @@ class Screen(dict, HTMLSkin, GUISkin): self.instance.hide() for x in self.onHide: x() - for (name, val) in self.items(): + for val in self.values() + self.renderer: if isinstance(val, GUIComponent): val.onHide() |
