其他分享
首页 > 其他分享> > Tkinter:

Tkinter:

作者:互联网

How do I get a windows current size using Tkinter?

Use the following universal widget methods (where w is a widget):

w.winfo_height()
w.winfo_width()

You can also use the following:

w.winfo_reqheight()
w.winfo_reqwidth()

Read about universal widget methods.

 

 

 

 

https://stackoverflow.com/questions/4065783/how-do-i-get-a-windows-current-size-using-tkinter

标签:winfo,Tkinter,methods,universal,widget,current,size
来源: https://www.cnblogs.com/emanlee/p/15435622.html