aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/PictureInPicture.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-05-04 23:34:47 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-05-04 23:34:47 +0000
commit84702da5d3a6df33717b399b859008a3cf8a1522 (patch)
tree03495da465a37db044f69bee8a3f06945947b33d /lib/python/Screens/PictureInPicture.py
parentfd002c45932aa88271af9be88f2d585199ac5a1e (diff)
downloadenigma2-84702da5d3a6df33717b399b859008a3cf8a1522.tar.gz
enigma2-84702da5d3a6df33717b399b859008a3cf8a1522.zip
move/resize PiP window (requires new drivers) (and is not yet working properly)
Diffstat (limited to 'lib/python/Screens/PictureInPicture.py')
-rw-r--r--lib/python/Screens/PictureInPicture.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/python/Screens/PictureInPicture.py b/lib/python/Screens/PictureInPicture.py
index 391c042f..8bf78cfb 100644
--- a/lib/python/Screens/PictureInPicture.py
+++ b/lib/python/Screens/PictureInPicture.py
@@ -1,4 +1,5 @@
from Screens.Screen import Screen
+from enigma import ePoint, eSize
from Components.VideoWindow import VideoWindow
@@ -7,3 +8,17 @@ class PictureInPicture(Screen):
Screen.__init__(self, session)
self["video"] = VideoWindow()
+
+ def move(self, x, y):
+ print "moving pip to", str(x) + ":" + str(y)
+ self.instance.move(ePoint(x, y))
+
+ def resize(self, w, h):
+ print "resizing pip to", str(w) + "x" + str(h)
+ self.instance.resize(eSize(*(w, h)))
+
+ def getPosition(self):
+ return ((self.instance.position().x(), self.instance.position().y()))
+
+ def getSize(self):
+ return (self.instance.size().width(), self.instance.size().height()) \ No newline at end of file