cleanup some imports
[enigma2.git] / lib / python / Components / Pixmap.py
index d25530ea71e8ca9980e37aedb31ba980c3e8d195..3cc8c661e3572b066941fe1e8999b13f3cf3eca8 100644 (file)
@@ -1,24 +1,10 @@
-from ConditionalWidget import *
+from ConditionalWidget import ConditionalWidget
+from GUIComponent import GUIComponent
 
-from enigma import *
+from enigma import ePixmap, eTimer
 
-class Pixmap(Widget):
-       def __init__(self):
-               Widget.__init__(self)
-
-       def getePixmap(self, parent):
-               #pixmap = ePixmap(parent)
-               #pixmap.setPixmapFromFile(self.filename)
-               return ePixmap(parent)
-       
-       def createWidget(self, parent):
-               return self.getePixmap(parent)
-
-       def removeWidget(self, w):
-               pass
-
-       def move(self, x, y):
-               self.instance.move(ePoint(int(x), int(y)))
+class Pixmap(GUIComponent):
+       GUI_WIDGET = ePixmap
 
 class PixmapConditional(ConditionalWidget, Pixmap):
        def __init__(self, withTimer = True):