follow api changes
[enigma2.git] / lib / python / Screens / Scart.py
1 from Screen import Screen
2 from MessageBox import MessageBox
3
4 from Components.AVSwitch import AVSwitch
5
6 from enigma import *
7
8 class Scart(Screen):
9         def __init__(self, session):
10                 Screen.__init__(self, session)
11                 
12                 self.avswitch = AVSwitch()
13                 
14                 self.avswitch.setInput("SCART")
15                 
16                 self.onShown.append(self.showMessageBox)
17                                 
18         def showMessageBox(self):
19                 self.session.openWithCallback(self.switchToTV, MessageBox, _("If you see this, something is wrong with\nyour scart connection. Press OK to return."), MessageBox.TYPE_ERROR)
20                 
21         def switchToTV(self, val):
22                 self.avswitch.setInput("ENCODER")
23                 self.close()