当前位置: 首页>>代码示例>>Python>>正文


Python ScanSetup.newConfig方法代码示例

本文整理汇总了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)
开发者ID:OpenDMM,项目名称:enigma2,代码行数:14,代码来源:plugin.py

示例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()
开发者ID:idrogeno,项目名称:FusionOE,代码行数:16,代码来源:plugin.py

示例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()
开发者ID:Open-Plus,项目名称:opgui,代码行数:19,代码来源:plugin.py

示例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()
开发者ID:openhdf,项目名称:enigma2,代码行数:44,代码来源:plugin.py


注:本文中的Screens.ScanSetup.ScanSetup.newConfig方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。