Tkinter
has this method:
window_name.attributes('-fullscreen',True)
and customtkinter
?
I haven't found anything but
geometry(f"{WIDTH}x{HEIGHT}")
However when I grab screen size and put as WIDTH & HEIGHT the screen does change the size but does not go full size, I mean it is always shifted to the right so the windows leaves the margin on the left and top and the part of the window goes out of the screen to the right.
There are two functions you have to call to setup full screen (at least on Linux).
self.wm_attributes('-fullscreen', True)
self.state('normal') # This call is appears to be necessary to make the app actually go full screen.
This works on customtkinter v5.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With