本文整理汇总了Python中Components.config.ConfigYesNo.setValue方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigYesNo.setValue方法的具体用法?Python ConfigYesNo.setValue怎么用?Python ConfigYesNo.setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.config.ConfigYesNo
的用法示例。
在下文中一共展示了ConfigYesNo.setValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Satscan
# 需要导入模块: from Components.config import ConfigYesNo [as 别名]
# 或者: from Components.config.ConfigYesNo import setValue [as 别名]
#.........这里部分代码省略.........
"green": self.KeyNone,
"ok": self.KeyNone,
"cancel": self.keyCancel,
}, -2)
self["key_red"] = StaticText(_("Exit"))
self["key_green"] = StaticText(" ")
self["text"] = Label(_("Tuner not set up, can't scan"))
def FillConfigList(self):
self.config_list = []
self.multiscanlist = []
index_to_scan = int(self.select_nim.value)
self.tunerEntry = getConfigListEntry(_("Tuner"), self.select_nim)
self.config_list.append(self.tunerEntry)
if self.select_nim == [ ]:
return
nim = nimmanager.nim_slots[index_to_scan]
if not nim.isCompatible("DVB-S"):
return
self.config_list.append(getConfigListEntry(_('Satellite'), self.positions_config_list[self.SelectedNimToList(index_to_scan)]))
self.config_list.append(getConfigListEntry(_("Scan circular polarisation"), self.scan_circular))
self.config_list.append(getConfigListEntry(_("Scan found transponders"), self.scan_transponders))
self.config_list.append(getConfigListEntry(_("Clear position before scan"), self.scan_clearservices))
self.config_list.append(getConfigListEntry(_("Scan only FTA services"), self.scan_fta))
self["config"].list = self.config_list
self["config"].l.setList(self.config_list)
self.scan_transponders.setValue(True)
def UpdateConfigListPositions(self):
cur = self["config"].getCurrent()
if cur == self.tunerEntry:
self.FillConfigList()
def keyLeft(self):
ConfigListScreen.keyLeft(self)
self.UpdateConfigListPositions()
def keyRight(self):
ConfigListScreen.keyRight(self)
self.UpdateConfigListPositions()
def keyCancel(self):
self.session.nav.playService(self.current_service)
for x in self["config"].list:
x[1].cancel()
self.close()
def PolarisationFirst(self):
return 0
def PolarisationLast(self):
return 1
def PolarisationToEnigma(self, pol_id):
pol_tab_nc = [ eDVBFrontendParametersSatellite.Polarisation_Horizontal, eDVBFrontendParametersSatellite.Polarisation_Vertical ]
pol_tab_c = [ eDVBFrontendParametersSatellite.Polarisation_CircularLeft, eDVBFrontendParametersSatellite.Polarisation_CircularRight ]
if pol_id == 0 or pol_id == 1:
if self.scan_circular.value: