Вопрос

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