X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FPixmap.py;h=3cc8c661e3572b066941fe1e8999b13f3cf3eca8;hb=834bbf9162cfd90cd063e25aa45fc3c28fdee742;hp=211b772c2be02edd02c9b348ea1b7c069e6f69f0;hpb=fd07ec4a3d617bb1ee1f7ebdf6791014586efd84;p=vuplus_dvbapp diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py index 211b772..3cc8c66 100644 --- a/lib/python/Components/Pixmap.py +++ b/lib/python/Components/Pixmap.py @@ -1,21 +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 +class Pixmap(GUIComponent): + GUI_WIDGET = ePixmap class PixmapConditional(ConditionalWidget, Pixmap): def __init__(self, withTimer = True):