X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FMovieList.py;h=1a61d20ff224039c0daeb3916f19d7c54ff94211;hb=65e19746f08f1287005861692322cdf868b06dc6;hp=2a3cd910fea6b0c88f8ea9836e952de61b42e63d;hpb=a80c8953ab5dafd0eb96b9cc19f8c5cb84dcd8e2;p=vuplus_dvbapp diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 2a3cd91..1a61d20 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -59,19 +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() - return l or l[0] + 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)