TkInter: number of pixels of a line/oval

风流意气都作罢 提交于 2019-12-13 00:47:44

问题


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.



来源:https://stackoverflow.com/questions/30104270/tkinter-number-of-pixels-of-a-line-oval

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!