Open omar2205 opened 2 years ago
Add this code to the generated code to center the window
w = 320 h = 249 screen_width = window.winfo_screenwidth() screen_height = window.winfo_screenheight() x = int((screen_width / 2) - (w / 2)) y = int((screen_height / 2) - (h / 2)) window.geometry(f'{w}x{h}+{x}+{y}')
Hey, Thanks @omar2205 for the code. I'll leave this issue open if someone wants to center their window.
Add this code to the generated code to center the window