本文整理汇总了Python中Components.Sources.Source.Source.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Source.__init__方法的具体用法?Python Source.__init__怎么用?Python Source.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.Sources.Source.Source
的用法示例。
在下文中一共展示了Source.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=LIST):
self.func = func
Source.__init__(self)
self.session = session
self.recordtimer = session.nav.RecordTimer
self.epgcache = eEPGCache.getInstance()
self.res = (False, "unknown command")
示例2: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, command_default="state"):
self.cmd = command_default
Source.__init__(self)
global globalActionMap # hackalert :)
self.actionmap = globalActionMap
self.volctrl = eDVBVolumecontrol.getInstance() # this is not nice
self.vol = ( True, "State", self.volctrl.getVolume(), self.volctrl.isMuted() )
示例3: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=ADD_BOUQUET):
Source.__init__(self)
self.func = func
self.session = session
self.command = None
self.bouquet_rootstr = ""
self.result = ( False, "one two three four unknown command" )
示例4: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session):
Source.__init__(self)
self.session = session
self.res = ( False,
config.SleepTimer.defaulttime.value,
config.SleepTimer.action.value,
"Obligatory parameters missing [cmd [set,get], time [0-999], action [standby,shutdown], enabled [True,False]" )
示例5: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, navcore, func=BOUQUETNOW, endtm=False):
self.func = func
Source.__init__(self)
self.navcore = navcore
self.epgcache = eEPGCache.getInstance()
self.command = None
self.endtime = endtm
示例6: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=FETCH):
Source.__init__(self)
self.session = session
self.func = func
self.servicelist = {}
self.xml = ""
self.command = eServiceReference(service_types_tv + ' FROM BOUQUET "bouquets.tv" ORDER BY bouquet')
示例7: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=PRINT):
self.cmd = []
self.session = session
self.func = func
Source.__init__(self)
error = "unknown command (%s)" % func
self.res = (False, error)
示例8: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, player):
Source.__init__(self)
self.__info = VlcService.Info()
self.server = None
self.service = self
self.player = player
self.lastrefresh = time()
self.stats = None
示例9: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, type=SINGLE):
Source.__init__(self)
self.session = session
self.sci = eServiceCenter.getInstance()
self.command = None
self.info = None
self.type = type
示例10: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, movielist, func=LIST):
Source.__init__(self)
self.func = func
self.session = session
self.tagfilter = []
self.root = eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD))
self.movielist = movielist #MovieList(self.root)
self.res = ( False, _("Missing or Wrong Argument") )
示例11: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=LIST):
Source.__init__(self)
self.func = func
self.session = session
error = "Unknown command (%s)" % func
if func is self.LIST:
self.result = ((error, error, error),)
else:
self.result = (False, error)
示例12: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, list = [ ], enableWrapAround = False, item_height = 25, fonts = [ ]):
List.__init__(self, list = [ ], enableWrapAround = False, item_height = 25, fonts = [ ])
Source.__init__(self)
self.__list = list
self.onSelectionChanged = [ ]
self.item_height = item_height
self.fonts = fonts
self.disable_callbacks = False
self.enableWrapAround = enableWrapAround
self.__style = "default" # style might be an optional string which can be used to define different visualisations in the skin
示例13: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session, func=ADD_FAVORITE):
Source.__init__(self)
self.func = func
self.session = session
self.command = None
if self.func is self.GET_PLAYING_STATUS:
self.result = self.getPlayingStatus()
elif self.func is self.GET_STREAMING_INFOS:
self.result = self.getStreamingInfos()
elif self.func is self.STOP_PLAYING:
self.result = self.stopPlaying()
else:
self.result = ( False, "one two three four unknown command" )
示例14: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session):
self.cmd = None
self.session = session
Source.__init__(self)
self.res = ( False, _("Missing or wrong argument" ))
self.eam = eActionMap.getInstance()
#Advanced remote or standard?
if config.misc.rcused.value == 0:
self.remotetype = self.TYPE_ADVANCED
else:
self.remotetype = self.TYPE_STANDARD
print "[RemoteControl.__init__] Configured RCU-Type is '%s'" %(self.remotetype)
示例15: __init__
# 需要导入模块: from Components.Sources.Source import Source [as 别名]
# 或者: from Components.Sources.Source.Source import __init__ [as 别名]
def __init__(self, session):
self.cmd = None
self.session = session
Source.__init__(self)