开发者

How do I get a window's current size using Tkinter?

开发者 https://www.devze.com 2023-01-23 10:02 出处:网络
How 开发者_运维技巧do I get a windows current size using Tkinter, or possibly with the python standard library? Use the following universal widget methods (where w is a widget):

How 开发者_运维技巧do I get a windows current size using Tkinter, or possibly with the python standard library?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消