diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-05-01 12:02:37 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-05-01 12:02:37 +0000 |
| commit | cd2b1ae219b4463fae3dabbe609dd6cd6b95372e (patch) | |
| tree | b483e70a07b64a88eae1f3849284903340d5ccf3 /lib/python | |
| parent | 1bf000d47e1987b1ed57a0d923b2ba57e26081a8 (diff) | |
| download | enigma2-cd2b1ae219b4463fae3dabbe609dd6cd6b95372e.tar.gz enigma2-cd2b1ae219b4463fae3dabbe609dd6cd6b95372e.zip | |
fix ChoiceList baseclass order, use postWidgetCreate
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/ChoiceList.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/python/Components/ChoiceList.py b/lib/python/Components/ChoiceList.py index 91f18aee..fa071ece 100644 --- a/lib/python/Components/ChoiceList.py +++ b/lib/python/Components/ChoiceList.py @@ -26,15 +26,17 @@ def ChoiceEntryComponent(key, text): return res -class ChoiceList(HTMLComponent, GUIComponent, MenuList): +class ChoiceList(MenuList, HTMLComponent, GUIComponent): def __init__(self, list): GUIComponent.__init__(self) self.l = eListboxPythonMultiContent() self.list = list self.l.setList(list) self.l.setFont(0, gFont("Regular", 20)) - - def GUIcreate(self, parent): - self.instance = eListbox(parent) - self.instance.setContent(self.l) - self.instance.setItemHeight(25) + + GUI_WIDGET = eListbox + + def postWidgetCreate(self, instance): + instance = eListbox(parent) + instance.setContent(self.l) + instance.setItemHeight(25) |
