TkInter: number of pixels of a line/oval

2019-08-10 00:07发布

问题:

Let's draw a line and a circle:

canvas.create_line(x0,y0,x1,y1)
canvas.create_oval(x0,y0,x1,y1)

How to count the number of pixels each one of them has ?

回答1:

You can't. Tkinter gives you no way to get that information.