本文整理汇总了Python中Screens.ScanSetup.ScanSetup.newConfig方法的典型用法代码示例。如果您正苦于以下问题:Python ScanSetup.newConfig方法的具体用法?Python ScanSetup.newConfig怎么用?Python ScanSetup.newConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Screens.ScanSetup.ScanSetup
的用法示例。
在下文中一共展示了ScanSetup.newConfig方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: newConfig
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import newConfig [as 别名]
def newConfig(self):
cur = self["config"].getCurrent()
if cur is None:
pass
elif cur == self.satEntry:
self.updateSats()
self.createSetup()
else:
ScanSetup.newConfig(self)
if self.systemEntry and cur == self.systemEntry or \
cur == self.tuning_type:
self.retune(None)
示例2: newConfig
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import newConfig [as 别名]
def newConfig(self):
ScanSetup.newConfig(self)
cur = self["config"].getCurrent()
print"cur ", cur
if cur == self.tunerEntry:
self.feid = int(self.scan_nims.value)
self.createSetup()
self.prepareFrontend()
if self.frontend == None:
msg = _("Tuner not available.")
if self.session.nav.RecordTimer.isRecording():
msg += _("\nRecording in progress.")
self.session.open(MessageBox, msg, MessageBox.TYPE_ERROR)
self.retune()
示例3: newConfig
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import newConfig [as 别名]
def newConfig(self):
# self.transponder = None
cur = self["config"].getCurrent()
print"cur ", cur
if cur == self.tunerEntry:
self.feid = int(self.scan_nims.value)
self.prepareFrontend()
if self.frontend == None and self.session.nav.RecordTimer.isRecording():
slot = nimmanager.nim_slots[self.feid]
msg = _("%s not available.") % slot.getSlotName()
msg += _("\nRecording in progress.")
self.session.open(MessageBox, msg, MessageBox.TYPE_ERROR)
else:
ScanSetup.newConfig(self)
if cur[1].value == "single_transponder":
self.retune()
示例4: newConfig
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import newConfig [as 别名]
def newConfig(self):
# self.transponder = None
cur = self["config"].getCurrent()
print"cur ", cur
if cur == self.tunerEntry:
self.feid = int(self.scan_nims.value)
self.prepareFrontend()
if self.frontend == None and self.session.nav.RecordTimer.isRecording():
slot = nimmanager.nim_slots[self.feid]
msg = _("%s not available.") % slot.getSlotName()
msg += _("\nRecording in progress.")
self.session.open(MessageBox, msg, MessageBox.TYPE_ERROR)
elif cur == self.is_id_boolEntry:
if self.is_id_boolEntry[1].value:
self.scan_sat.is_id.value = 0 if self.is_id_memory < 0 else self.is_id_memory
self.scan_sat.pls_mode.value = self.pls_mode_memory
self.scan_sat.pls_code.value = self.pls_code_memory
else:
self.is_id_memory = self.scan_sat.is_id.value
self.pls_mode_memory = self.scan_sat.pls_mode.value
self.pls_code_memory = self.scan_sat.pls_code.value
self.scan_sat.is_id.value = eDVBFrontendParametersSatellite.No_Stream_Id_Filter
self.scan_sat.pls_mode.value = eDVBFrontendParametersSatellite.PLS_Gold
self.scan_sat.pls_code.value = eDVBFrontendParametersSatellite.PLS_Default_Gold_Code
self.createSetup()
self.retune()
elif cur == self.t2mi_plp_id_boolEntry:
if self.t2mi_plp_id_boolEntry[1].value:
self.scan_sat.t2mi_plp_id.value = 0 if self.t2mi_plp_id_memory < 0 else self.t2mi_plp_id_memory
self.scan_sat.t2mi_pid.value = self.t2mi_pid_memory
else:
self.t2mi_plp_id_memory = self.scan_sat.t2mi_plp_id.value
self.t2mi_pid_memory = self.scan_sat.t2mi_pid.value
self.scan_sat.t2mi_plp_id.value = eDVBFrontendParametersSatellite.No_T2MI_PLP_Id
self.scan_sat.t2mi_pid.value = eDVBFrontendParametersSatellite.T2MI_Default_Pid
self.createSetup()
self.retune()
else:
ScanSetup.newConfig(self)
if cur[1].value == "single_transponder":
self.retune()