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


Python objects.Leaf类代码示例

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


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

示例1: __init__

 def __init__(self, serverid, name):
     try:
         obj = gio.unix.DesktopAppInfo("gvim.desktop")
     except RuntimeError:
         obj = gio.AppInfo(VIM)
     Leaf.__init__(self, obj, name)
     self.serverid = serverid
开发者ID:pbx,项目名称:kupfer,代码行数:7,代码来源:plugin.py

示例2: __init__

	def __init__(self, account, service_name, show_content=True):
		Leaf.__init__(self, account['id'], service_name)
		self._show_content = show_content
		# TRANS: Account description, similar to "John on Identi.ca"
		self._description = _("%(user)s on %(service)s") % {
				'user': account.get('site_display_name') or account['username'],
				'service': account['service']}
开发者ID:tuxcanfly,项目名称:kupfer,代码行数:7,代码来源:gwibber.py

示例3: __init__

	def __init__(self, default_book, book_id, title, author, path, metadata_file):
		Leaf.__init__(self, os.path.join(path, default_book), title)
		self.book_id = book_id
		self.author = author
		self.path = path
		self.metadata_file = metadata_file
		self.kupfer_add_alias(path)
开发者ID:KarolBedkowski,项目名称:kupfer-contrib,代码行数:7,代码来源:calibre.py

示例4: __init__

 def __init__(self, info, name=None):
     """Init with song info
     @info: Song information dictionary
     """
     if not name:
         name = info["title"]
     Leaf.__init__(self, info, name)
开发者ID:pbx,项目名称:kupfer,代码行数:7,代码来源:rhythmbox.py

示例5: __init__

	def __init__ (self, data, name):
		self.name = name
		obj = {
			'name' : name,
			'descr' : _("Connectable object %(name)s"),
			'icon_name': 'system'
			}
		obj.update(data)
		Leaf.__init__(self, obj, name)
开发者ID:spiritedflow,项目名称:kupfer-connectables,代码行数:9,代码来源:connectables.py

示例6: __init__

	def __init__(self, location, name=None, description=None, icon_name=None):
		"""Special location with @location and
		@name. If unset, we find @name from filesystem
		@description is Leaf description"""
		gfile = gio.File(location)
		info = gfile.query_info(gio.FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME)
		name = (info.get_attribute_string(gio.FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME) or location)
		Leaf.__init__(self, location, name)
		self.description = description
		self.icon_name = icon_name
开发者ID:CharString,项目名称:kupfer,代码行数:10,代码来源:trash.py

示例7: __init__

	def __init__(self, page_id, page_name, notebook_path, notebook_name):
		Leaf.__init__(self, page_id, page_name)
		self.page = page_name
		self.notebook = notebook_path
		self.notebook_name = notebook_name
开发者ID:DarwinAwardWinner,项目名称:kupfer,代码行数:5,代码来源:zim.py

示例8: __init__

	def __init__(self, obj, desc, category):
		Leaf.__init__(self, obj, obj)
		self.description = desc
		if desc:
			self.name_aliases.add(desc.splitlines()[0])
开发者ID:chmouel,项目名称:kupfer,代码行数:5,代码来源:icon_names.py

示例9: __init__

	def __init__(self, obj, name, description):
		Leaf.__init__(self, obj, name)
		self.description = description
开发者ID:CharString,项目名称:kupfer,代码行数:3,代码来源:__init__.py

示例10: __init__

		def __init__(self, leaf):
			Leaf.__init__(self, leaf.object, _("Last Result"))
			vars(self).update(vars(leaf))
			self.name = _("Last Result")
			self.__orignal_leaf = leaf
			self.__class__.__bases__ = (leaf.__class__, Leaf)
开发者ID:cjparsons74,项目名称:kupfer,代码行数:6,代码来源:internal.py

示例11: __init__

 def __init__(self, name):
     Leaf.__init__(self, name, name)
开发者ID:tierpod,项目名称:utils,代码行数:2,代码来源:clipboard_templates.py

示例12: __init__

	def __init__(self, package, desc):
		Leaf.__init__(self, package, package)
		self.desc = desc
开发者ID:CharString,项目名称:kupfer,代码行数:3,代码来源:apt_tools.py

示例13: __init__

 def __init__(self, obj):
     Leaf.__init__(obj, _("Plugin Leaf Name"))
开发者ID:hugosenari,项目名称:Kupfer-Plugins,代码行数:2,代码来源:pip_interface.py

示例14: __init__

	def __init__(self, obj, name):
		Leaf.__init__(self, obj, name)
开发者ID:CharString,项目名称:kupfer,代码行数:2,代码来源:kupfer_plugins.py

示例15: __init__

	def __init__(self, tag):
		Leaf.__init__(self, tag, tag)
开发者ID:tuxcanfly,项目名称:kupfer,代码行数:2,代码来源:tracker.py


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