X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f3b1a20b183c612caf5122ebc4540a8fe4fff486..a996da519c52c9e468b30da93d8439ad49c875d5:/lib/python/Components/config.py?ds=sidebyside diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 4850ca35..2056192f 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -342,6 +342,7 @@ class Config: "9": 19 } config = Config(); + configfile = configFile() class ConfigSlider: @@ -498,3 +499,9 @@ def getConfigListEntry(description, element): b = element item = b.controlType(b) return ((description, item)) + + +def configElementBoolean(name, default, texts=(_("Enable"), _("Disable"))): + return configElement(name, configSelection, default, texts) + +config.misc = ConfigSubsection()