How to specify where a Tkinter window opens?

后端 未结 5 1693
抹茶落季
抹茶落季 2020-12-02 12:54

How can I tell a Tkinter window where to open, based on screen dimensions? I would like it to open in the middle.

5条回答
  •  醉梦人生
    2020-12-02 13:19

    root.geometry('520x400+350+200')

    Explanation: ('width x height + X coordinate + Y coordinate')

提交回复
热议问题