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
评论列表
文章目录