X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fc94d22d03cd9e7c24977257cbec912ad72c79da..92456d9542585d58e011fa4f0b501de3ef9c1819:/lib/python/Components/MovieList.py diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 2e861472..1a61d20f 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -59,21 +59,20 @@ class MovieList(HTMLComponent, GUIComponent): def getCurrentIndex(self): return self.instance.getCurrentIndex() + def getCurrentEvent(self): + l = self.l.getCurrentSelection() + return l and l[0] and l[1] and l[1].getEvent(l[0]) + def getCurrent(self): l = self.l.getCurrentSelection() - if l is not None: - return self.l.getCurrentSelection()[0] - return None - - def GUIcreate(self, parent): - self.instance = eListbox(parent) - self.instance.setContent(self.l) - self.instance.setItemHeight(75) - - def GUIdelete(self): - self.instance.setContent(None) - self.instance = None + return l and l[0] + GUI_WIDGET = eListbox + + def postWidgetCreate(self, instance): + instance.setContent(self.l) + instance.setItemHeight(75) + def reload(self, root = None): if root is not None: self.load(root)