79412270

Date: 2025-02-04 15:56:39
Score: 0.5
Natty:
Report link

For a slightly more general approach: to copy any canvas item:

coords = canvas.coords(item_id)
config = canvas.itemconfig(item_id)
new_config = {key: config[key][-1] for key in config.keys()}
item = new_canvas._create(item_type, coords, {})
new_canvas.itemconfigure(item, new_config)

enter code here

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: crs