Skip to content

Commit

Permalink
Standardize cancel/confim button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunhwq committed Sep 3, 2023
1 parent 4c4ce47 commit 0a8894a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions visual_comparison/widgets/widget_pop_ups.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,10 @@ def __init__(self, text, title, desired_type, ctk_corner_radius, lower_bound=flo
prompt_label.grid(row=0, column=0, columnspan=2, padx=20, pady=20)
self.entry = customtkinter.CTkEntry(self, corner_radius=ctk_corner_radius)
self.entry.grid(row=1, column=0, columnspan=2, padx=20, pady=(0, 20))
confirm_button = customtkinter.CTkButton(self, text="Confirm", command=self.on_confirm, corner_radius=ctk_corner_radius)
confirm_button.grid(row=2, column=0, padx=20, pady=(0, 20))
cancel_button = customtkinter.CTkButton(self, text="Cancel", command=self.destroy, corner_radius=ctk_corner_radius)
cancel_button.grid(row=2, column=1, padx=(0, 20), pady=(0, 20))
cancel_button.grid(row=2, column=0, padx=20, pady=(0, 20))
confirm_button = customtkinter.CTkButton(self, text="Confirm", command=self.on_confirm, corner_radius=ctk_corner_radius)
confirm_button.grid(row=2, column=1, padx=(0, 20), pady=(0, 20))

self.return_value = None
self.cancelled = True
Expand Down

0 comments on commit 0a8894a

Please sign in to comment.