本文整理汇总了Python中command_support.EditCommand_PM.EditCommand_PM.update_props_if_needed_before_closing方法的典型用法代码示例。如果您正苦于以下问题:Python EditCommand_PM.update_props_if_needed_before_closing方法的具体用法?Python EditCommand_PM.update_props_if_needed_before_closing怎么用?Python EditCommand_PM.update_props_if_needed_before_closing使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类command_support.EditCommand_PM.EditCommand_PM
的用法示例。
在下文中一共展示了EditCommand_PM.update_props_if_needed_before_closing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: update_props_if_needed_before_closing
# 需要导入模块: from command_support.EditCommand_PM import EditCommand_PM [as 别名]
# 或者: from command_support.EditCommand_PM.EditCommand_PM import update_props_if_needed_before_closing [as 别名]
def update_props_if_needed_before_closing(self):
"""
This updates some cosmetic properties of the Plane (e.g. fill color,
border color, etc.) before closing the Property Manager.
"""
# Example: The Plane Property Manager is open and the user is
# 'previewing' the plane. Now the user clicks on "Build > Atoms"
# to invoke the next command (without clicking "Done").
# This calls openPropertyManager() which replaces the current PM
# with the Build Atoms PM. Thus, it creates and inserts the Plane
# that was being previewed. Before the plane is permanently inserted
# into the part, it needs to change some of its cosmetic properties
# (e.g. fill color, border color, etc.) which distinguishes it as
# a new plane in the part. This function changes those properties.
# ninad 2007-06-13
#called in updatePropertyManager in MWsemeantics.py --(Partwindow class)
EditCommand_PM.update_props_if_needed_before_closing(self)
#Don't draw the direction arrow when the object is finalized.
if self.command.struct and \
self.command.struct.offsetParentGeometry:
dirArrow = self.command.struct.offsetParentGeometry.directionArrow
dirArrow.setDrawRequested(False)