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


Python PerServiceBase.__init__方法代码示例

本文整理汇总了Python中Components.PerServiceDisplay.PerServiceBase.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python PerServiceBase.__init__方法的具体用法?Python PerServiceBase.__init__怎么用?Python PerServiceBase.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Components.PerServiceDisplay.PerServiceBase的用法示例。


在下文中一共展示了PerServiceBase.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
 def __init__(self, navcore):
     Source.__init__(self)
     PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent,
      iPlayableService.evUpdatedRadioText: self.gotEvent,
      iPlayableService.evUpdatedRtpText: self.gotEvent,
      iPlayableService.evUpdatedRassInteractivePicMask: self.gotEvent,
      iPlayableService.evEnd: self.gotEvent}, with_event=True)
开发者ID:kingvuplus,项目名称:boom,代码行数:9,代码来源:RdsDecoder.py

示例2: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
 def __init__(self, navcore, now_or_next):
     Source.__init__(self)
     PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.gotEvent,
      iPlayableService.evUpdatedEventInfo: self.gotEvent,
      iPlayableService.evEnd: self.gotEvent}, with_event=True)
     self.now_or_next = now_or_next
     self.epgQuery = eEPGCache.getInstance().lookupEventTime
开发者ID:kingvuplus,项目名称:boom,代码行数:9,代码来源:EventInfo.py

示例3: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
 def __init__(self, navcore):
     Source.__init__(self)
     PerServiceBase.__init__(self, navcore, {iPlayableService.evStart: self.serviceEvent,
      iPlayableService.evEnd: self.serviceEvent,
      iPlayableService.evUpdatedInfo: self.serviceEvent,
      iPlayableService.evUpdatedEventInfo: self.serviceEvent,
      iPlayableService.evNewProgramInfo: self.serviceEvent,
      iPlayableService.evCuesheetChanged: self.serviceEvent,
      iPlayableService.evVideoSizeChanged: self.serviceEvent,
      iPlayableService.evHBBTVInfo: self.serviceEvent}, with_event=True)
     self.navcore = navcore
开发者ID:kingvuplus,项目名称:boom,代码行数:13,代码来源:CurrentService.py

示例4: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
	def __init__(self, service_source = None, frontend_source = None, navcore = None):
		self.navcore = None
		Source.__init__(self)
		if navcore:
			PerServiceBase.__init__(self, navcore,
			{
				iPlayableService.evTunedIn: self.updateFrontendData,
				iPlayableService.evEnd: self.serviceEnd
			})
		self.service_source = service_source
		self.frontend_source = frontend_source
		self.updateFrontendData()
开发者ID:OpenDMM,项目名称:enigma2,代码行数:14,代码来源:FrontendInfo.py

示例5: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
	def __init__(self, navcore, now_or_next):
		Source.__init__(self)
		self.epgTimer = eTimer()
		self.epgTimer.callback.append(self.epgTimerCheck)
		PerServiceBase.__init__(self, navcore,
			{
				iPlayableService.evStart: self.gotEvent,
				iPlayableService.evUpdatedEventInfo: self.gotEvent,
				iPlayableService.evEnd: self.gotEvent
			}, with_event=True)
		self.now_or_next = now_or_next
		self.epgQuery = eEPGCache.getInstance().lookupEventTime
		self.NextStartTime = 0	
开发者ID:wzcwzc,项目名称:enigma2,代码行数:15,代码来源:EventInfo.py

示例6: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
 def __init__(self, service_source = None, frontend_source = None, navcore = None):
     self.navcore = None
     Source.__init__(self)
     if navcore:
         PerServiceBase.__init__(self, navcore, {iPlayableService.evTunedIn: self.updateFrontendData,
          iPlayableService.evEnd: self.serviceEnd})
     res_mgr = eDVBResourceManager.getInstance()
     if res_mgr:
         res_mgr.frontendUseMaskChanged.get().append(self.updateTunerMask)
     self.service_source = service_source
     self.frontend_source = frontend_source
     self.tuner_mask = 0
     self.updateFrontendData()
     return
开发者ID:kingvuplus,项目名称:boom,代码行数:16,代码来源:FrontendInfo.py

示例7: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
	def __init__(self, navcore):
		Source.__init__(self)
		PerServiceBase.__init__(self, navcore, 
			{ 
				iPlayableService.evStart: self.serviceEvent,
				iPlayableService.evEnd: self.serviceEvent,
				# FIXME: we should check 'interesting_events'
				# which is not always provided.
				iPlayableService.evUpdatedInfo: self.serviceEvent,
				iPlayableService.evUpdatedEventInfo: self.serviceEvent,
				iPlayableService.evCuesheetChanged: self.serviceEvent,
				iPlayableService.evVideoSizeChanged: self.serviceEvent
			}, with_event=True)
		self.navcore = navcore
开发者ID:BananaSamurai,项目名称:Enigma2,代码行数:16,代码来源:CurrentService.py

示例8: __init__

# 需要导入模块: from Components.PerServiceDisplay import PerServiceBase [as 别名]
# 或者: from Components.PerServiceDisplay.PerServiceBase import __init__ [as 别名]
	def __init__(self, *p, **k):
		if not 'session' in k:
			return

		print "[StreamServerSeek] init"
		
		config.misc.standbyCounter.addNotifier(self._onStandby, initial_call = False)

		PerServiceBase.__init__(self, self._session.nav,
			{ 
				iPlayableService.evServiceChanged: self._onServiceChanged,
				iPlayableService.evEOF: self._onEOF,
				iPlayableService.evPlay: self._onPlaying
			}, with_event=False)
		
		
		self._timer = eTimer()
		self._timer_conn = self._timer.timeout.connect(self.endTemporaryLiveMode)

		streamServerControl.onSourceStateChanged.append(self._onSourceStateChanged)
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:22,代码来源:StreamServerSeek.py


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