Get Tkinter Window Size

前端 未结 4 1664
离开以前
离开以前 2020-12-17 10:54

How do I get the width and height of a Tkinter window?

4条回答
  •  时光说笑
    2020-12-17 11:19

    I believe you could do root.geometry("300x300") where the 300s are random numbers I just chose. For more information, check out this tutorial http://usingpython.com/using-tkinter/

提交回复
热议问题