X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4ae10f76135d53a4285fd458a87f485695c9fbd7..2ba80311aa9598a775b163f20ca7aff3df1e4d47:/lib/python/Components/Pixmap.py diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py index b6620d9a..2a54ea98 100644 --- a/lib/python/Components/Pixmap.py +++ b/lib/python/Components/Pixmap.py @@ -1,24 +1,24 @@ -import skin +from ConditionalWidget import * from enigma import * -class Pixmap: - """Pixmap can be used for components which diplay a pixmap""" - +class Pixmap(Widget): def __init__(self): - self.instance = None - - def GUIcreate(self, parent): - self.instance = self.createWidget(parent) - - def GUIdelete(self): - self.removeWidget(self.instance) - self.instance = None - + Widget.__init__(self) + def getePixmap(self, parent): #pixmap = ePixmap(parent) #pixmap.setPixmapFromFile(self.filename) return ePixmap(parent) - def removeWidget(self, instance): + def createWidget(self, parent): + return self.getePixmap(parent) + + def removeWidget(self, w): pass + +class PixmapConditional(ConditionalWidget, Pixmap): + def __init__(self, withTimer = True): + ConditionalWidget.__init__(self) + Pixmap.__init__(self) +