aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py7
1 files changed, 7 insertions, 0 deletions
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()