diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-02-04 22:19:04 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2007-02-04 22:19:04 +0000 |
| commit | dd5eb76b9fe3fdc9e31e405176c0de47c310adb3 (patch) | |
| tree | 2b00b02242d165e16ee33c67c0415708efcd6089 /lib/python/Components/GUIComponent.py | |
| parent | 40abde85c0fbd8c10fdc7f8894c128cb8acf05ee (diff) | |
| download | enigma2-dd5eb76b9fe3fdc9e31e405176c0de47c310adb3.tar.gz enigma2-dd5eb76b9fe3fdc9e31e405176c0de47c310adb3.zip | |
prepare skinning of python GUIComponents
Diffstat (limited to 'lib/python/Components/GUIComponent.py')
| -rw-r--r-- | lib/python/Components/GUIComponent.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/python/Components/GUIComponent.py b/lib/python/Components/GUIComponent.py index 1f4c1e4f..401a004d 100644 --- a/lib/python/Components/GUIComponent.py +++ b/lib/python/Components/GUIComponent.py @@ -36,8 +36,18 @@ class GUIComponent(object): skin.applyAllAttributes(self.instance, desktop, self.skinAttributes) - def move(self, x, y): - self.instance.move(ePoint(int(x), int(y))) + def move(self, x, y = None): + # we assume, that x is already an ePoint + if y is None: + self.instance.move(x) + else: + self.instance.move(ePoint(int(x), int(y))) + + def resize(self, size): + self.instance.resize(size) + + def setZPosition(self, z): + self.instance.setZPosition(z) def show(self): self.__visible = 1 |
