X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FUsageConfig.py;h=71b0b60c6dbfb296530f41a791313f03d64e403f;hp=b36580184f0ff308264056826b87a981b7daec6a;hb=99e6feec1546d5fa2ff8e5cdfdf84438db4281b3;hpb=233d539468f8a5b89782e9e92be224fcd7c21ab6 diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index b365801..71b0b60 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -1,5 +1,5 @@ from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger -from enigma import Misc_Options +from enigma import Misc_Options, setTunerTypePriorityOrder; import os def InitUsageConfig(): @@ -38,6 +38,18 @@ def InitUsageConfig(): ("show_menu", _("show shutdown menu")), ("shutdown", _("immediate shutdown")) ] ) + config.usage.alternatives_priority = ConfigSelection(default = "0", choices = [ + ("0", "DVB-S/-C/-T"), + ("1", "DVB-S/-T/-C"), + ("2", "DVB-C/-S/-T"), + ("3", "DVB-C/-T/-S"), + ("4", "DVB-T/-C/-S"), + ("5", "DVB-T/-S/-C") ]) + + def TunerTypePriorityOrderChanged(configElement): + setTunerTypePriorityOrder(int(configElement.value)) + config.usage.alternatives_priority.addNotifier(TunerTypePriorityOrderChanged) + def setHDDStandby(configElement): os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc") config.usage.hdd_standby.addNotifier(setHDDStandby)