diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-05-01 11:47:04 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-05-01 11:47:04 +0000 |
| commit | c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3 (patch) | |
| tree | 22d7ac7e4f0aaf3b91574d81ac30fd6a9d97fdb7 /lib/python/Components/Pixmap.py | |
| parent | 9c5ae5bc6ef248b414e3153538936477cccfdd20 (diff) | |
| download | enigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.tar.gz enigma2-c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3.zip | |
simplify GUIcreate/createWidget, fix base class order
Diffstat (limited to 'lib/python/Components/Pixmap.py')
| -rw-r--r-- | lib/python/Components/Pixmap.py | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py index 211b772c..3cc8c661 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): |
