diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:36:07 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-22 01:36:07 +0000 |
| commit | a996da519c52c9e468b30da93d8439ad49c875d5 (patch) | |
| tree | 2827a8e896101ec3b51ff650445375d20a77c65e /lib/python/Components | |
| parent | f3b1a20b183c612caf5122ebc4540a8fe4fff486 (diff) | |
| download | enigma2-a996da519c52c9e468b30da93d8439ad49c875d5.tar.gz enigma2-a996da519c52c9e468b30da93d8439ad49c875d5.zip | |
config: create config.misc, add configElementBoolean
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/config.py | 7 |
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() |
