aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/ConditionalWidget.py3
-rw-r--r--lib/python/Components/GUIComponent.py5
-rw-r--r--lib/python/Components/Pixmap.py3
3 files changed, 8 insertions, 3 deletions
diff --git a/lib/python/Components/ConditionalWidget.py b/lib/python/Components/ConditionalWidget.py
index 3d855b27..52dcb20c 100644
--- a/lib/python/Components/ConditionalWidget.py
+++ b/lib/python/Components/ConditionalWidget.py
@@ -30,6 +30,9 @@ class Widget(GUIComponent):
def hideWidget(self):
self.state = self.HIDDEN
self.instance.hide()
+
+ def move(self, x, y):
+ self.instance.move(ePoint(int(x), int(y)))
class ConditionalWidget(Widget):
def __init__(self, withTimer = True):
diff --git a/lib/python/Components/GUIComponent.py b/lib/python/Components/GUIComponent.py
index fee9341c..b84cf8c2 100644
--- a/lib/python/Components/GUIComponent.py
+++ b/lib/python/Components/GUIComponent.py
@@ -1,5 +1,7 @@
import skin
+from enigma import ePoint
+
class GUIComponent:
""" GUI component """
@@ -15,3 +17,6 @@ class GUIComponent:
# this works only with normal widgets - if you don't have self.instance, override this.
def applySkin(self, desktop):
skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)
+
+ def move(self, x, y):
+ self.instance.move(ePoint(int(x), int(y))) \ No newline at end of file
diff --git a/lib/python/Components/Pixmap.py b/lib/python/Components/Pixmap.py
index d25530ea..211b772c 100644
--- a/lib/python/Components/Pixmap.py
+++ b/lib/python/Components/Pixmap.py
@@ -17,9 +17,6 @@ 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)