本文整理汇总了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)
示例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
示例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
示例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()
示例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
示例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
示例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
示例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)