From a996da519c52c9e468b30da93d8439ad49c875d5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 22 Nov 2005 01:36:07 +0000 Subject: [PATCH] config: create config.misc, add configElementBoolean --- lib/python/Components/config.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- 2.30.2