Skip to content Skip to sidebar Skip to footer

How To Avoid Closing Of Gtk.dialog In Python?

I have a form in a Gtk.Dialog which has an 'Ok' button and a 'Cancel' button. When I click on the Ok button, the dialog returns 1 and when I click on Cancel button, it returns 0. W

Solution 1:

You could define a custom dialog. Here you can find an example. Make shure to destroy the dialog only if your validation succeded.


Post a Comment for "How To Avoid Closing Of Gtk.dialog In Python?"