本文整理匯總了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"))