aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/PictureInPicture.py
diff options
context:
space:
mode:
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