config rewrite. some extensions still need to be updated.
[enigma2.git] / lib / python / Components / UsageConfig.py
index e10a749..36fc417 100644 (file)
@@ -1,10 +1,8 @@
-from config import *
-import os
-from enigma import *
+from config import ConfigSubsection, ConfigYesNo, config
 
 def InitUsageConfig():
        config.usage = ConfigSubsection();
-       config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
-       config.usage.multibouquet = configElement("config.usage.multibouquet", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
-       config.usage.quickzap_bouquet_change = configElement("config.usage.quickzap_bouquet_change", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
-       config.usage.e1like_radio_mode = configElement("config.usage.e1like_radio_mode", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
+       config.usage.showdish = ConfigYesNo(default = False)
+       config.usage.multibouquet = ConfigYesNo(default = False)
+       config.usage.quickzap_bouquet_change = ConfigYesNo(default = False)
+       config.usage.e1like_radio_mode = ConfigYesNo(default = False)