add non working multi bouquet switch
[vuplus_dvbapp] / lib / python / Components / UsageConfig.py
1 from config import *
2 import os
3 from enigma import *
4
5 from Screens.ChannelSelection import USE_MULTIBOUQUETS
6 global USE_MULTIBOUQUETS
7
8 def InitUsageConfig():
9         config.usage = ConfigSubsection();
10         config.usage.epgtoggle = configElement("config.usage.epgtoggle", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
11         config.usage.showdish = configElement("config.usage.showdish", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
12         config.usage.multibouquet = configElement("config.usage.multibouquet", configSelection, 1, (("yes", _("yes")), ("no", _("no"))) )
13         
14         def setMultiBouquet(configElement):
15                 if currentConfigSelectionElement(configElement) == "no":
16                         USE_MULTIBOUQUETS = False
17                 else:
18                         USE_MULTIBOUQUETS = True
19                 
20         config.usage.multibouquet.addNotifier(setMultiBouquet);