config: create config.misc, add configElementBoolean
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 22 Nov 2005 01:36:07 +0000 (01:36 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 22 Nov 2005 01:36:07 +0000 (01:36 +0000)
lib/python/Components/config.py

index 4850ca3..2056192 100644 (file)
@@ -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()