-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Confirm on close #31
Comments
Yes, it is definitely doable. Thanks for the suggestion. |
Could you make this a callback of some sort? Or some other way to plug in application logic? |
How would you envision a callback? |
Well, there's also the problem of how to display such a dialog. If the application has other dialogs/prompts, it should be displayed in the same style--which is probably HTML. (Although Tkinter does have some APIs for native system dialogs.) There's also other kinds of "do you want to exit" prompts: "Do you want to disconnect?", "Can't exit now; please wait for outstanding jobs to finish.", other variations of "unsaved data". The simplest thing to do would probably be to add a keyword argument |
FYI, I wrote a wrapper that has an instance method |
I have started implementing a confirmation dialog here https://github.com/r0x0r/pywebview/tree/confirmation-dialog |
Great news! just started to use pywebview and thought it would be great to have a confirmation dialog. And here it is, being implemented :) |
Simple OK/Cancel confirmation dialogs are implemented on Windows and OSX. Linux is on the way. |
All platforms support now OK/Cancel confirmation dialog. The confirmation-dialog branch is merged with master. |
Why is this issue still open? |
A three way confirmation dialog (eg. Save, don't save, cancel) is still missing. |
Let's close this one and reopen if there is a concrete need for a three-way dialog |
So, at present, is there a way or workaround to have something like a save confirmation on close? |
You can set |
I'd like use this in my project, but one of my functional requirements is a confirm dialog on close.
Is this something that can be easily added?
The text was updated successfully, but these errors were encountered: