From fd07ec4a3d617bb1ee1f7ebdf6791014586efd84 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 9 Dec 2005 10:30:39 +0000 Subject: show lists and configs in startwizard by adjusting the zPosition left/right is now possible with configlists in the wizard up/down possible with lists but doesn't work on configlists (why?) --- lib/python/Components/ConditionalWidget.py | 3 +++ lib/python/Components/GUIComponent.py | 5 +++++ lib/python/Components/Pixmap.py | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/python/Components') 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) -- cgit v1.2.3