Pass an empty tuple or list to dash
.
self.canvas.itemconfig(line, dash=())
質問
In my Python script, I initially created a canvas line as solid. Then under a certain event, I changed the line to dash using the syntax below.
self.canvas.itemconfig(line, dash=(4, 4))
What is the command to change it back to a solid line?
解決
Pass an empty tuple or list to dash
.
self.canvas.itemconfig(line, dash=())