aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/VideoWindow.py
blob: 2906aa31134d8a006c563d027b8de6968d2d4d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from GUIComponent import GUIComponent
from enigma import eVideoWidget, eSize

class VideoWindow(GUIComponent):
	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));