[pygtk] Apply button behavior with GtkDialog

Mitko Haralanov mitko at qlogic.com
Thu Feb 28 04:58:14 WST 2008


In the application that I am working on, I have a GtkDialog with three
action buttons: Apply, Cancel, and OK. All three buttons return a
GTK_RESPONSE when clicked (I am using the GtkDialog's run method).

When the user presses the OK or CANCEL buttons everything is fine,
since on those button presses the dialog window gets closed. However,
the APPLY button is a different story.

On a click of the APPLY button, the dialog returns the
GTK_RESPONSE_APPLY response ID (which allows me to perform the actions
that are associated with that button), however after that none of the
buttons do anything. 
This makes sense since the run() method returned but the question that
I have is how do I make the GtkDialog responsive again? Calling the
dialogs' run() method doesn't work and I don't want to destoy and
re-create it.

-- 
Mitko Haralanov					 mitko at qlogic.com
Senior Software Engineer			     650.934.8064
HSG InfiniBand Engineering		    http://www.qlogic.com

==========================================
52. NO!  Not _that_ button!

	--Top 100 things you don't want the sysadmin to say


More information about the pygtk mailing list