In this video I’ll show you how to place your Tkinter window in the center of the screen, no matter what size monitor or screen resolution you’re using.
We’ll use the app’s width and height, as well as the screen’s width and height to do a little simple math to center our app on the middle of the screen.
To find the screen width and height, we’ll use winfo_screewidth() and winfo_screenheight()
Add comment