add the name of missing skin element to debug output
[enigma2.git] / lib / python / Components / GUIComponent.py
index 1f4c1e4f5fcf8da13454689c14113ddcb946e944..c900796d566fd3a559e82f823cdab9b8fd417041 100644 (file)
@@ -31,13 +31,23 @@ class GUIComponent(object):
                        self.instance.hide()
                
                if self.skinAttributes is None:
-                       print "warning, skin is missing some elements."
-                       return
+                       return False
 
                skin.applyAllAttributes(self.instance, desktop, self.skinAttributes)
+               return True
 
-       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