path_helpers.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ui2 作者: controversial 项目源码 文件源码
def copy_path(path):
    """ Make a copy of a ui.Path and return it. Preserves all data. """
    new = ui.Path()
    new.append_path(path)
    # Copy over the attributes
    new.line_cap_style = path.line_cap_style
    new.line_join_style = path.line_join_style
    new.line_width = path.line_width

    return new
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号