git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40abde8
)
prepare skinning of python GUIComponents
author
Stefan Pluecken
<
[email protected]
>
Sun, 4 Feb 2007 22:19:04 +0000
(22:19 +0000)
committer
Stefan Pluecken
<
[email protected]
>
Sun, 4 Feb 2007 22:19:04 +0000
(22:19 +0000)
lib/python/Components/GUIComponent.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/GUIComponent.py
b/lib/python/Components/GUIComponent.py
index 1f4c1e4f5fcf8da13454689c14113ddcb946e944..401a004da350b9f5bd1fc1988b2cb827d2573850 100644
(file)
--- 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