Re: Re: nStreamPlayer VOD - Enigma2 VOD Player (part 2)
Да там есть функция Zwieschenspeichern
Да там есть функция Zwieschenspeichern
class WeatherIcon(Pixmap):
def __init__(self):
Pixmap.__init__(self)
self.IconFileName = ""
self.picload = ePicLoad()
self.picload.PictureData.get().append(self.paintIconPixmapCB)
def onShow(self):
Pixmap.onShow(self)
sc = AVSwitch().getFramebufferScale()
self.picload.setPara((self.instance.size().width(), self.instance.size().height(), sc[0], sc[1], 0, 0, '#00000000'))
def paintIconPixmapCB(self, picInfo=None):
ptr = self.picload.getData()
if ptr != None:
self.instance.setPixmap(ptr.__deref__())
def updateIcon(self, filename):
new_IconFileName = filename
if (self.IconFileName != new_IconFileName):
self.IconFileName = new_IconFileName
self.picload.startDecode(self.IconFileName)
else:
print "already shown", filename
Комментарий