本文整理汇总了Python中pgidocgen.repo.Repository.lookup_parameter_docs方法的典型用法代码示例。如果您正苦于以下问题:Python Repository.lookup_parameter_docs方法的具体用法?Python Repository.lookup_parameter_docs怎么用?Python Repository.lookup_parameter_docs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pgidocgen.repo.Repository
的用法示例。
在下文中一共展示了Repository.lookup_parameter_docs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_pango
# 需要导入模块: from pgidocgen.repo import Repository [as 别名]
# 或者: from pgidocgen.repo.Repository import lookup_parameter_docs [as 别名]
def test_pango(self):
repo = Repository("Pango", "1.0")
self.assertTrue(
repo.lookup_parameter_docs("Pango.extents_to_pixels.inclusive"))
self.assertTrue(
repo.lookup_parameter_docs("Pango.break_.text"))
self.assertTrue(
repo.lookup_parameter_docs("Pango.TabArray.new.initial_size"))
self.assertTrue(repo.is_private("Pango.RendererPrivate"))
self.assertFalse(repo.is_private("Pango.AttrIterator"))
示例2: test_gio
# 需要导入模块: from pgidocgen.repo import Repository [as 别名]
# 或者: from pgidocgen.repo.Repository import lookup_parameter_docs [as 别名]
def test_gio(self):
repo = Repository("Gio", "2.0")
method = repo.lookup_attr_docs("Gio.Application.activate")
signal = repo.lookup_signal_docs("Gio.Application.activate")
self.assertTrue(method)
self.assertTrue(signal)
self.assertNotEqual(method, signal)
self.assertFalse(
repo.lookup_parameter_docs(
"Gio.Application.command-line.command_line"))
self.assertTrue(
repo.lookup_parameter_docs(
"Gio.Application.command-line.command_line", signal=True))
示例3: test_glib_shadowed
# 需要导入模块: from pgidocgen.repo import Repository [as 别名]
# 或者: from pgidocgen.repo.Repository import lookup_parameter_docs [as 别名]
def test_glib_shadowed(self):
repo = Repository("GLib", "2.0")
# GLib.io_add_watch points to g_io_add_watch_full and should
# also use its docs
self.assertTrue(
repo.lookup_parameter_docs("GLib.io_add_watch.priority"))
self.assertTrue(
"priority" in repo.lookup_attr_docs("GLib.io_add_watch"))
# we include a note containing the shadowed docs
self.assertTrue(
".. note::" in repo.lookup_attr_docs("GLib.io_add_watch"))