From c8599be3a4e4fed4613dae1baf9e213c344ecf18 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 3 May 2006 18:28:36 +0000 Subject: [PATCH] fix crash since GUI rebuilding --- lib/python/Components/EpgList.py | 12 +++++++----- 1 file 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: -- 2.30.2