本文整理汇总了Python中xpcom.server.UnwrapObject._buildCellProperties方法的典型用法代码示例。如果您正苦于以下问题:Python UnwrapObject._buildCellProperties方法的具体用法?Python UnwrapObject._buildCellProperties怎么用?Python UnwrapObject._buildCellProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xpcom.server.UnwrapObject
的用法示例。
在下文中一共展示了UnwrapObject._buildCellProperties方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: KGit_hookFunction
# 需要导入模块: from xpcom.server import UnwrapObject [as 别名]
# 或者: from xpcom.server.UnwrapObject import _buildCellProperties [as 别名]
def KGit_hookFunction(self):
wm = components.classes["@mozilla.org/appshell/window-mediator;1"].getService(components.interfaces.nsIWindowMediator)
win = wm.getMostRecentWindow("Komodo")
tree = win.document.getElementById('places-files-tree')
treebox = tree.boxObject.QueryInterface(components.interfaces.nsITreeBoxObject)
pview = UnwrapObject(treebox.view)
if pview._buildCellProperties == self.KGit_buildCellProperties:
return
self._buildCellProperties_old = pview._buildCellProperties
pview._buildCellProperties = self.KGit_buildCellProperties