diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Makefile.am | 2 | ||||
| -rw-r--r-- | lib/python/Components/Pixmap.py | 3 | ||||
| -rw-r--r-- | lib/python/Components/Slider.py | 19 |
3 files changed, 23 insertions, 1 deletions
diff --git a/lib/python/Components/Makefile.am b/lib/python/Components/Makefile.am index 6e0e94ba..0a6eb590 100644 --- a/lib/python/Components/Makefile.am +++ b/lib/python/Components/Makefile.am @@ -10,4 +10,4 @@ install_PYTHON = \ InputDevice.py ServicePosition.py SetupDevices.py Harddisk.py \ AVSwitch.py Network.py RFmod.py DiskInfo.py NimManager.py Lcd.py \ EpgList.py ScrollLabel.py Timezones.py Language.py HelpMenuList.py \ - BlinkingPixmap.py Pixmap.py ConditionalWidget.py + BlinkingPixmap.py Pixmap.py ConditionalWidget.py Slider.py diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py index 2a54ea98..5f4b9691 100644 --- a/lib/python/Components/Pixmap.py +++ b/lib/python/Components/Pixmap.py @@ -17,6 +17,9 @@ class Pixmap(Widget): def removeWidget(self, w): pass + def move(self, x, y): + self.instance.move(ePoint(int(x), int(y))) + class PixmapConditional(ConditionalWidget, Pixmap): def __init__(self, withTimer = True): ConditionalWidget.__init__(self) diff --git a/lib/python/Components/Slider.py b/lib/python/Components/Slider.py new file mode 100644 index 00000000..dae13d9c --- /dev/null +++ b/lib/python/Components/Slider.py @@ -0,0 +1,19 @@ +from HTMLComponent import * +from GUIComponent import * +from VariableValue import * +from VariableText import * + +from enigma import eSlider + +class Slider(HTMLComponent, GUIComponent, VariableValue): + def __init__(self, min, max): + VariableValue.__init__(self) + GUIComponent.__init__(self) + + self.min = min + self.max = max + + def createWidget(self, parent): + g = eSlider(parent) + g.setRange(self.min, self.max) + return g
\ No newline at end of file |
