-from HTMLComponent import *
-from GUIComponent import *
+from HTMLComponent import HTMLComponent
+from GUIComponent import GUIComponent
from MenuList import MenuList
from Tools.Directories import SCOPE_SKIN_IMAGE, resolveFilename
from os import path
-from enigma import eListboxPythonMultiContent, eListbox, RT_VALIGN_CENTER, loadPNG, gFont
+from enigma import eListboxPythonMultiContent, eListbox, RT_VALIGN_CENTER, loadPNG, gFont, eServiceCenter
STATE_PLAY = 0
STATE_PAUSE = 1
self.list = []
self.l.setList(self.list)
self.l.setFont(0, gFont("Regular", 18))
+ self.l.setItemHeight(22)
self.currPlaying = -1
self.oldCurrPlaying = -1
+ self.serviceHandler = eServiceCenter.getInstance()
def clear(self):
del self.list[:]
def postWidgetCreate(self, instance):
instance.setContent(self.l)
- instance.setItemHeight(22)
def getSelection(self):
return self.l.getCurrentSelection()[0]
def getCurrentIndex(self):
return self.currPlaying
+
+ def getCurrentEvent(self):
+ l = self.l.getCurrentSelection()
+ return l and self.serviceHandler.info(l[0]).getEvent(l[0])
+
+ def getCurrent(self):
+ l = self.l.getCurrentSelection()
+ return l and l[0]
def getServiceRefList(self):
return [ x[0] for x in self.list ]