1 from Screen import Screen
2 from MessageBox import MessageBox
4 from Components.AVSwitch import AVSwitch
9 def __init__(self, session):
10 Screen.__init__(self, session)
12 self.avswitch = AVSwitch()
14 self.avswitch.setInput("SCART")
16 self.onExecBegin.append(self.showMessageBox)
18 def showMessageBox(self):
19 # only open messagebox on first execBegin
20 self.onExecBegin.remove(self.showMessageBox)
21 self.session.openWithCallback(self.switchToTV, MessageBox, _("If you see this, something is wrong with\nyour scart connection. Press OK to return."), MessageBox.TYPE_ERROR)
23 def switchToTV(self, *val):
24 self.avswitch.setInput("ENCODER")