<!--<item text="CI"><screen module="Ci" screen="CiSelection" /></item>-->
<!--<item text="Radio"><code>print "radio mode"</code></item>-->
<item text="Timer"><screen module="TimerEdit" screen="TimerEditList" /></item>
+ <item text="VCR scart"><screen module="Scart" screen="Scart" /></item>
<menu text="Information">
<item text="Service"><screen module="ServiceInfo" screen="ServiceInfo"/></item>
<!--<widget name="menu" position="10,55" size="280,150" font="Regular;23" />-->
<widget name="menu" position="10,55" size="290,175" scrollbarMode="showOnDemand" />
</screen>
- <screen name="ScartLoopThrough" position="0,0" size="720,576">
+ <screen name="Scart" position="0,0" size="720,576">
</screen>
<screen name="ServiceInfo" position="160,120" size="400,330" title="Serviceinfo">
<widget name="infolist" position="20,10" size="360,325" selectionDisabled="1"/>
write(fd, input[val], strlen(input[val]));
close(fd);
+ if (val == 1)
+ setFastBlank(0);
+}
+
+void eAVSwitch::setFastBlank(int val)
+{
+ int fd;
char *fb[] = {"low", "high", "vcr"};
return;
}
- write(fd, input[val], strlen(fb[0]));
+ write(fd, fb[val], strlen(fb[0]));
close(fd);
}
~eAVSwitch();
static eAVSwitch *getInstance();
-
+
+ void setFastBlank(int val);
void setColorFormat(int format);
void setAspectRatio(int ratio);
void setVideomode(int mode);
from enigma import *
class AVSwitch:
+ INPUT = { "ENCODER": 0, "SCART": 1, "AUX": 2 }
def __init__(self):
pass
def setWSS(self, value):
#print "wss:" + str(value)
pass
+
+ def setInput(self, input):
+ eAVSwitch.getInstance().setInput(self.INPUT[input])
def InitAVSwitch():
config.av = ConfigSubsection();
config.av.aspectratio.addNotifier(setAspectRatio);
config.av.tvsystem.addNotifier(setSystem);
config.av.wss.addNotifier(setWSS);
-
+
+ iAVSwitch.setInput("ENCODER") # init on startup
\ No newline at end of file
EpgSelection.py EventView.py Mute.py Standby.py ServiceInfo.py \
AudioSelection.py InfoBarGenerics.py HelpMenu.py Wizard.py __init__.py \
Dish.py SubserviceSelection.py LanguageSelection.py StartWizard.py \
- TutorialWizard.py PluginBrowser.py MinuteInput.py
+ TutorialWizard.py PluginBrowser.py MinuteInput.py Scart.py
--- /dev/null
+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