Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Python 脚本中,我最初创建了一条实线画布线。然后在某个事件下,我使用以下语法将行更改为破折号。
self.canvas.itemconfig(line, dash=(4, 4))
将其更改回实线的命令是什么?
将空元组或列表传递给dash.
dash
self.canvas.itemconfig(line, dash=())