Centering CTk() and Tk() windows to the main display (windows 10&11) #1820
HyperNylium
started this conversation in
Showcase
Replies: 2 comments 1 reply
-
Works perfect, thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Funciona Perfeitamente |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When the CTk() window launches, it launches somewhere on your main display but doesn't really have a center function. I know this is kind of common knowledge by now but just wanted to put this here for anyone that is looking for it:
I originally made the function in tkinter but when i started to use customtkinter, the window wasn't really launching in the middle of the display. It was always offset a little. This new version takes in account for the scale factor of your display as well (100%, 125%, 150%, etc).
This is what the tkinter version looks like:
Beta Was this translation helpful? Give feedback.
All reactions