本文整理汇总了Python中Gaffer.affectedByChange方法的典型用法代码示例。如果您正苦于以下问题:Python Gaffer.affectedByChange方法的具体用法?Python Gaffer.affectedByChange怎么用?Python Gaffer.affectedByChange使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gaffer
的用法示例。
在下文中一共展示了Gaffer.affectedByChange方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __plugMetadataChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import affectedByChange [as 别名]
def __plugMetadataChanged( self, nodeTypeId, plugPath, key, plug ) :
if self.getPlug() is None :
return
if key=="label" and Gaffer.affectedByChange( self.getPlug(), nodeTypeId, plugPath, plug ) :
self.__updateFormatter()
示例2: __plugMetadataChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import affectedByChange [as 别名]
def __plugMetadataChanged( self, nodeTypeId, plugPath, key, plug ) :
if self.__plug is None :
return
if (
Gaffer.affectedByChange( self.__plug, nodeTypeId, plugPath, plug ) or
( key == "readOnly" and Gaffer.ancestorAffectedByChange( self.__plug, nodeTypeId, plugPath, plug ) )
) :
self._updateFromPlug()
示例3: __plugMetadataChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import affectedByChange [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()
示例4: plugValueChanged
# 需要导入模块: import Gaffer [as 别名]
# 或者: from Gaffer import affectedByChange [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))