diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-29 21:44:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-29 21:44:37 +0000 |
| commit | 02ccc66eb625545cedf7222b0467c077f43c4150 (patch) | |
| tree | c2a93afb2d3e43d60659757a51d12766dae62299 /lib/python/Components | |
| parent | 06019661790615badd7bd5f4b26595aafe3afa71 (diff) | |
| download | enigma2-02ccc66eb625545cedf7222b0467c077f43c4150.tar.gz enigma2-02ccc66eb625545cedf7222b0467c077f43c4150.zip | |
ServiceList: allow setMode before GUIcreate
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/ServiceList.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py index d39e7427..89b40ed2 100644 --- a/lib/python/Components/ServiceList.py +++ b/lib/python/Components/ServiceList.py @@ -12,6 +12,8 @@ class ServiceList(HTMLComponent, GUIComponent): GUIComponent.__init__(self) self.l = eListboxServiceContent() self.root = None + + self.mode = self.MODE_NORMAL def setCurrent(self, ref): self.l.setCurrent(ref) @@ -30,6 +32,7 @@ class ServiceList(HTMLComponent, GUIComponent): def GUIcreate(self, parent): self.instance = eListbox(parent) self.instance.setContent(self.l) + self.setMode(self.mode) def GUIdelete(self): self.instance = None @@ -86,6 +89,13 @@ class ServiceList(HTMLComponent, GUIComponent): self.l.setCurrentMarked(state) def setMode(self, mode): + self.mode = mode + + try: + self.instance + except: + return + if mode == self.MODE_NORMAL: self.instance.setItemHeight(28) self.l.setVisualMode(eListboxServiceContent.visModeSimple) |
