X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ee6ee608040d130ded361d1342ef528c79a56c7b..05aa25aa522a21bd5594fd774b8685afd33fb69b:/lib/python/Components/UsageConfig.py diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py index 393dbbc4..507696f0 100644 --- a/lib/python/Components/UsageConfig.py +++ b/lib/python/Components/UsageConfig.py @@ -1,4 +1,4 @@ -from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection +from config import ConfigSubsection, ConfigYesNo, config, ConfigSelection, ConfigText, ConfigInteger from enigma import Misc_Options import os @@ -23,6 +23,7 @@ def InitUsageConfig(): ("248", "4 " + _("hours")) ]) config.usage.output_12V = ConfigSelection(default = "do not change", choices = [ ("do not change", _("do not change")), ("off", _("off")), ("on", _("on")) ]) + config.usage.self_defined_seek = ConfigInteger(default=10, limits=(1,9999)) def setHDDStandby(configElement): os.system("hdparm -S" + configElement.value + " /dev/ide/host0/bus0/target0/lun0/disc") @@ -34,3 +35,5 @@ def InitUsageConfig(): elif configElement.value == "off": Misc_Options.getInstance().set_12V_output(0) config.usage.output_12V.addNotifier(set12VOutput) + + config.usage.keymap = ConfigText(default = "/usr/share/enigma2/keymap.xml")