当前位置: 首页>>代码示例>>Python>>正文


Python EditCommand_PM.update_props_if_needed_before_closing方法代码示例

本文整理汇总了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)
开发者ID:alaindomissy,项目名称:nanoengineer,代码行数:29,代码来源:PlanePropertyManager.py


注:本文中的command_support.EditCommand_PM.EditCommand_PM.update_props_if_needed_before_closing方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。