fix no more turning positioner after leave positioner setup in some cases
[enigma2.git] / lib / python / Components / VideoWindow.py
1 from GUIComponent import GUIComponent
2 from enigma import eVideoWidget, eSize
3
4 class VideoWindow(GUIComponent):
5         def __init__(self, decoder = 1, fb_width = 720, fb_height = 576):
6                 GUIComponent.__init__(self)
7                 self.decoder = decoder
8                 self.fb_width = fb_width
9                 self.fb_height = fb_height
10
11         GUI_WIDGET = eVideoWidget
12
13         def postWidgetCreate(self, instance):
14                 instance.setDecoder(self.decoder)
15                 instance.setFBSize(eSize(self.fb_width, self.fb_height));