How to place a Python tkinter window in the center of the screen

Опубликовано: 09 Октябрь 2024
на канале: John Philip Jones
29,862
585

This lesson looks at how a window can be placed in the center of a screen regardless as to the size of the window and the resolution of the monitor. It does so with the help of winfo_screenwidth() and winfo_screenheight(). Please note that the calculations do not take into account the title bar of the window. So think of the video as almost putting the window in the center. Please consider supporting this channel on Patreon: https://www.patreon.com/user?u=3538393