aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/MovieList.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/MovieList.py')
-rw-r--r--lib/python/Components/MovieList.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py
index 3b7e7e36..970180cd 100644
--- a/lib/python/Components/MovieList.py
+++ b/lib/python/Components/MovieList.py
@@ -63,15 +63,12 @@ class MovieList(HTMLComponent, GUIComponent):
l = self.l.getCurrentSelection()
return l and l[0]
- def GUIcreate(self, parent):
- self.instance = eListbox(parent)
- self.instance.setContent(self.l)
- self.instance.setItemHeight(75)
+ GUI_WIDGET = eListbox
+
+ def postWidgetCreate(self, instance):
+ instance.setContent(self.l)
+ instance.setItemHeight(75)
- def GUIdelete(self):
- self.instance.setContent(None)
- self.instance = None
-
def reload(self, root = None):
if root is not None:
self.load(root)