Skip to content

Commit

Permalink
Explicitly set the default size of the preview window in the creat_pr…
Browse files Browse the repository at this point in the history
…eview function

Signed-off-by: litao <[email protected]>
  • Loading branch information
litao committed Jan 6, 2025
1 parent aed933c commit c25d4bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,8 @@ def create_preview(parent: ctk.CTkToplevel) -> ctk.CTkToplevel:
preview = ctk.CTkToplevel(parent)
preview.withdraw()
preview.title("Preview")
# Set default window size
preview.geometry("800x600")
preview.configure()
preview.protocol("WM_DELETE_WINDOW", lambda: toggle_preview())
preview.resizable(width=True, height=True)
Expand Down

0 comments on commit c25d4bc

Please sign in to comment.