Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added CTkConfirmationDialog #2639

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ageorge95
Copy link

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
Copy link
Author

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant