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


Python Source.Source类代码示例

本文整理汇总了Python中Components.Sources.Source.Source的典型用法代码示例。如果您正苦于以下问题:Python Source类的具体用法?Python Source怎么用?Python Source使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __init__

 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")
开发者ID:backtrack2016,项目名称:tdt,代码行数:7,代码来源:Timer.py

示例2: __init__

	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() )
开发者ID:4doe,项目名称:e2plugins,代码行数:7,代码来源:Volume.py

示例3: __init__

	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" )
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:7,代码来源:BouquetEditor.py

示例4: __init__

 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]" )
开发者ID:OpenVuPlus,项目名称:dvbapp-plugin,代码行数:7,代码来源:SleepTimer.py

示例5: __init__

 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
开发者ID:TitanNit,项目名称:tdt,代码行数:7,代码来源:EPG.py

示例6: __init__

	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')
开发者ID:TitanNit,项目名称:tdt,代码行数:8,代码来源:ServiceListRecursive.py

示例7: __init__

	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)
开发者ID:FFTEAM,项目名称:evolux-spark-sh4,代码行数:8,代码来源:Message.py

示例8: __init__

	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
开发者ID:OpenVuPlus,项目名称:dvbapp-plugin,代码行数:8,代码来源:VlcPlayer.py

示例9: __init__

	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
开发者ID:13K-OMAR,项目名称:enigma2-plugins-sh4,代码行数:8,代码来源:ServicePlayable.py

示例10: __init__

	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") )
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:8,代码来源:Movie.py

示例11: __init__

	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)
开发者ID:4doe,项目名称:e2plugins,代码行数:9,代码来源:MP.py

示例12: __init__

	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
开发者ID:OpenDMM,项目名称:enigma2-plugins,代码行数:10,代码来源:BirthdayReminder.py

示例13: __init__

	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" )
开发者ID:Blacksens,项目名称:enigma2-plugins,代码行数:13,代码来源:InternetRadioWeb.py

示例14: __init__

	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)
开发者ID:13K-OMAR,项目名称:enigma2-plugins-sh4,代码行数:15,代码来源:RemoteControl.py

示例15: __init__

	def __init__(self, session):
		self.cmd = None
		self.session = session
		Source.__init__(self)
开发者ID:BAZANT,项目名称:enigma2-plugins-sh4,代码行数:4,代码来源:PowerState.py


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