add ability to append normal funktions to Screen.onLayoutFinish call list
[enigma2.git] / lib / python / Components / Pixmap.py
index b6620d9ace5a8513dc79c053224dada66b77e715..2a54ea9864b8dbba8d814fe6702bbdd635798a7a 100644 (file)
@@ -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)
+