From 07a97bd644ab0d2020ba40a531188da24adf2b85 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 10 Oct 2005 19:25:47 +0000 Subject: [PATCH] adding function getConfigListEntry for dynamic menus --- lib/python/Components/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 7f8f5072..5d098a37 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -334,3 +334,8 @@ class configElement: self.loadData() def save(self): configfile.setKey(self.configPath, self.datatoFile(self.controlType,self.value)) + +def getConfigListEntry(description, element): + b = element + item = b.controlType(b) + return ((description, item)) \ No newline at end of file -- 2.30.2