X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6c2d3fc303542b7f77f4350974acf781a1b91c30..8f957309b2bfb7df00c123f91ebb6d1d302848ba:/lib/python/Components/GUISkin.py diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 3aa9c851..0fb94214 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -1,15 +1,16 @@ -from GUIComponent import * +from GUIComponent import GUIComponent 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 (name, val) in self.items(): + for val in self.values() + self.renderer: if isinstance(val, GUIComponent): val.GUIcreate(parent) val.applySkin(desktop) @@ -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)