cleanup some imports
[vuplus_dvbapp] / lib / python / Components / VideoWindow.py
index db24798..31190d9 100644 (file)
@@ -2,11 +2,11 @@ from GUIComponent import GUIComponent
 from enigma import eVideoWidget
 
 class VideoWindow(GUIComponent):
-       def __init__(self):
+       def __init__(self, decoder = 1):
                GUIComponent.__init__(self)
-       
-       def GUIcreate(self, parent):
-               self.instance = eVideoWidget(parent)
+               self.decoder = decoder
 
-       def GUIdelete(self):
-               self.instance = None
+       GUI_WIDGET = eVideoWidget
+
+       def postWidgetCreate(self, instance):
+               instance.setDecoder(self.decoder)