X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpython%2FComponents%2FGUISkin.py;h=0fb94214ff4c7529cea3c53f5e6104bd2d3aa912;hb=67b53c1cb06988394c35a6e965c99b72b67fe1be;hp=406cd0977218ba505988662a73a45436f5c8eb19;hpb=36dc37e5d0c9ef8fc5f923ad38ee6cc98f316556;p=vuplus_dvbapp diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py index 406cd09..0fb9421 100644 --- a/lib/python/Components/GUISkin.py +++ b/lib/python/Components/GUISkin.py @@ -1,12 +1,13 @@ -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 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)