diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-07-20 14:25:11 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-07-20 14:25:11 +0000 |
| commit | b4f7ad496e6740045e5ed38a21d39d06a9fffb98 (patch) | |
| tree | 6ad820651eeaa98678f9ec1f73fa5d3d068b4506 /lib/python/Components | |
| parent | af2d1d61b2312e95998e195a144018a422c9f09a (diff) | |
| download | enigma2-b4f7ad496e6740045e5ed38a21d39d06a9fffb98.tar.gz enigma2-b4f7ad496e6740045e5ed38a21d39d06a9fffb98.zip | |
use a CList for 'summaries' list for easier calling
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/GUISkin.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 406cd097..fc8f38cb 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -1,12 +1,13 @@ from GUIComponent import * from skin import applyAllAttributes +from Tools.CList import CList class GUISkin: __module__ = __name__ def __init__(self): self.onLayoutFinish = [ ] - self.summaries = [ ] + self.summaries = CList() def createGUIScreen(self, parent, desktop): for val in self.values() + self.renderer: @@ -18,7 +19,7 @@ class GUISkin: w.instance = w.widget(parent) # w.instance.thisown = 0 applyAllAttributes(w.instance, desktop, w.skinAttributes) - + for f in self.onLayoutFinish: if type(f) is not type(self.close): # is this the best way to do this? exec(f) in globals(), locals() @@ -45,6 +46,4 @@ class GUISkin: def setTitle(self, title): self.instance.setTitle(title) self.title = title - - for x in self.summaries: - x.setTitle(title) + self.summaries.setTitle(title) |
