aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/EpgList.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-05-03 18:28:36 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-05-03 18:28:36 +0000
commitc8599be3a4e4fed4613dae1baf9e213c344ecf18 (patch)
treebbb99d3219723928c8d112845e447050ffafbf59 /lib/python/Components/EpgList.py
parent2fc8ac30b55679470761e8851d92e85c887a53e1 (diff)
downloadenigma2-c8599be3a4e4fed4613dae1baf9e213c344ecf18.tar.gz
enigma2-c8599be3a4e4fed4613dae1baf9e213c344ecf18.zip
fix crash since GUI rebuilding
Diffstat (limited to 'lib/python/Components/EpgList.py')
-rw-r--r--lib/python/Components/EpgList.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/python/Components/EpgList.py b/lib/python/Components/EpgList.py
index cf55d265..e0f6f902 100644
--- a/lib/python/Components/EpgList.py
+++ b/lib/python/Components/EpgList.py
@@ -128,12 +128,14 @@ class EPGList(HTMLComponent, GUIComponent):
GUI_WIDGET = eListbox
- def postCreateWidget(self, instance):
- instance.setWrapAround(True)
- instance.selectionChanged.get().append(self.selectionChanged)
- instance.setContent(self.l)
+ def createWidget(self, parent):
+ l = eListbox(parent)
+ l.setWrapAround(True)
+ l.selectionChanged.get().append(self.selectionChanged)
+ l.setContent(self.l)
if SINGLE_CPP > 0:
- self.instance.setItemHeight(25)
+ l.setItemHeight(25)
+ return l
def recalcEntrySize(self):
if SINGLE_CPP == 0: