From 84702da5d3a6df33717b399b859008a3cf8a1522 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 4 May 2006 23:34:47 +0000 Subject: move/resize PiP window (requires new drivers) (and is not yet working properly) --- lib/python/Screens/PictureInPicture.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/python/Screens/PictureInPicture.py') 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 -- cgit v1.2.3