本文整理汇总了Python中Gaffer.childAffectedByChange方法的典型用法代码示例。如果您正苦于以下问题:Python Gaffer.childAffectedByChange方法的具体用法?Python Gaffer.childAffectedByChange怎么用?Python Gaffer.childAffectedByChange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gaffer
的用法示例。
在下文中一共展示了Gaffer.childAffectedByChange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __plugMetadataChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import childAffectedByChange [as 别名]
def __plugMetadataChanged( self, nodeTypeId, plugPath, key, plug ) :
parentAffected = isinstance( self.__parent, Gaffer.Plug ) and Gaffer.affectedByChange( self.__parent, nodeTypeId, plugPath, plug )
childAffected = Gaffer.childAffectedByChange( self.__parent, nodeTypeId, plugPath, plug )
if not parentAffected and not childAffected :
return
if key in (
"divider",
self.__layoutName + ":divider",
self.__layoutName + ":index",
self.__layoutName + ":section",
self.__layoutName + ":accessory",
"plugValueWidget:type"
) :
# we often see sequences of several metadata changes - so
# we schedule a lazy update to batch them into one ui update.
self.__layoutDirty = True
self.__updateLazily()
elif re.match( self.__layoutName + ":section:.*:summary", key ) :
self.__summariesDirty = True
self.__updateLazily()
示例2: plugValueChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import childAffectedByChange [as 别名]
def plugValueChanged(nodeTypeId, plugPath, key, plug):
affected.append(Gaffer.affectedByChange(n["p"]["s"], nodeTypeId, plugPath, plug))
ancestorAffected.append(Gaffer.ancestorAffectedByChange(n["p"]["s"], nodeTypeId, plugPath, plug))
childAffected.append(Gaffer.childAffectedByChange(n["p"], nodeTypeId, plugPath, plug))