diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-05-04 23:34:47 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-05-04 23:34:47 +0000 |
| commit | 84702da5d3a6df33717b399b859008a3cf8a1522 (patch) | |
| tree | 03495da465a37db044f69bee8a3f06945947b33d /lib/python/Screens/PictureInPicture.py | |
| parent | fd002c45932aa88271af9be88f2d585199ac5a1e (diff) | |
| download | enigma2-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.py | 15 |
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 |
