CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

added CTkConfirmationDialog

Open ageorge95 opened this issue 1 year ago • 1 comments

Hello, I have created a very simple ConfirmationDialog within the CustomTkinter framework.

If you think it is helpful you can merge it so that it is accessible to everyone 😊

Below is a usage example:

dialog = CTkConfirmationDialog(title="Quit", message="Do you really want to quit?").get_selection()
if dialog:
  pass # do stuff if the answer is OK (True)
else:
  pass # do other stuff if the answer is CANCEL (False)

(If I need to adapt it/ change it/ beautify it in order to merge it on the master branch let me know, I can dedicate some time to help with the merge)

ageorge95 avatar Nov 12 '24 14:11 ageorge95

Added a screenshot of the dialog window produced by the example code from the PR's description:

image

ageorge95 avatar Nov 12 '24 14:11 ageorge95