aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Scart.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Screens/Scart.py')
-rw-r--r--lib/python/Screens/Scart.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/python/Screens/Scart.py b/lib/python/Screens/Scart.py
new file mode 100644
index 00000000..50e65f17
--- /dev/null
+++ b/lib/python/Screens/Scart.py
@@ -0,0 +1,23 @@
+from Screen import Screen
+from MessageBox import MessageBox
+
+from Components.AVSwitch import AVSwitch
+
+from enigma import *
+
+class Scart(Screen):
+ def __init__(self, session):
+ Screen.__init__(self, session)
+
+ self.avswitch = AVSwitch()
+
+ self.avswitch.setInput("SCART")
+
+ self.onShown.append(self.showMessageBox)
+
+ def showMessageBox(self):
+ self.session.openWithCallback(self.switchToTV, MessageBox, _("If you see this, something is wrong with\nyour scart connection. Press OK to return."), MessageBox.TYPE_ERROR)
+
+ def switchToTV(self, val):
+ self.avswitch.setInput("ENCODER")
+ self.close() \ No newline at end of file