git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into experimental
[enigma2.git]
/
lib
/
python
/
Components
/
VideoWindow.py
diff --git
a/lib/python/Components/VideoWindow.py
b/lib/python/Components/VideoWindow.py
index db247980caf69e738dafd086c136bd3ffe69cc0a..2906aa31134d8a006c563d027b8de6968d2d4d9e 100644
(file)
--- a/
lib/python/Components/VideoWindow.py
+++ b/
lib/python/Components/VideoWindow.py
@@
-1,12
+1,15
@@
from GUIComponent import GUIComponent
from GUIComponent import GUIComponent
-from enigma import eVideoWidget
+from enigma import eVideoWidget
, eSize
class VideoWindow(GUIComponent):
class VideoWindow(GUIComponent):
- def __init__(self):
+ def __init__(self
, decoder = 1, fb_width = 720, fb_height = 576
):
GUIComponent.__init__(self)
GUIComponent.__init__(self)
-
- def GUIcreate(self, parent):
- self.
instance = eVideoWidget(parent)
+ self.decoder = decoder
+ self.fb_width = fb_width
+ self.
fb_height = fb_height
- def GUIdelete(self):
- self.instance = None
+ 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