Resizable Root window

pull/592/head
KRSHH 2024-09-16 19:13:54 +05:30 committed by GitHub
parent c9f8537a15
commit 569c9ca25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -213,12 +213,12 @@ def create_root(
ctk.set_default_color_theme("blue") ctk.set_default_color_theme("blue")
root = tkdnd.TkinterDnD.Tk() root = tkdnd.TkinterDnD.Tk()
root.minsize(ROOT_WIDTH, ROOT_HEIGHT)
root.title( root.title(
f"{modules.metadata.name} {modules.metadata.version} {modules.metadata.edition}" f"{modules.metadata.name} {modules.metadata.version} {modules.metadata.edition}"
) )
root.configure(bg="#1a1a1a") root.configure(bg="#1a1a1a")
root.protocol("WM_DELETE_WINDOW", lambda: destroy()) root.protocol("WM_DELETE_WINDOW", lambda: destroy())
root.resizable(True, True)
main_frame = ctk.CTkFrame(root, fg_color="#1a1a1a") main_frame = ctk.CTkFrame(root, fg_color="#1a1a1a")
main_frame.pack(fill="both", expand=True, padx=20, pady=20) main_frame.pack(fill="both", expand=True, padx=20, pady=20)