X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c0d78035b8c76e719bf7c05ff3812eb5a6ce9fe3..64cfba23aba53b4ab3933284b2a4a9ef5ec68e26:/lib/python/Components/VideoWindow.py diff --git a/lib/python/Components/VideoWindow.py b/lib/python/Components/VideoWindow.py index 88cd33f9..2906aa31 100644 --- a/lib/python/Components/VideoWindow.py +++ b/lib/python/Components/VideoWindow.py @@ -1,8 +1,15 @@ from GUIComponent import GUIComponent -from enigma import eVideoWidget +from enigma import eVideoWidget, eSize class VideoWindow(GUIComponent): - def __init__(self): + def __init__(self, decoder = 1, fb_width = 720, fb_height = 576): GUIComponent.__init__(self) + self.decoder = decoder + self.fb_width = fb_width + self.fb_height = fb_height GUI_WIDGET = eVideoWidget + + def postWidgetCreate(self, instance): + instance.setDecoder(self.decoder) + instance.setFBSize(eSize(self.fb_width, self.fb_height)); \ No newline at end of file