質問

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=())
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top