Re: gtk.window close button disconnet



Brian wrote:

Is there a way to disconnect the standard window close button from
destroying the window in pygtk?   I would like to confirm the closure if
certain conditions are met.
connect to the window's "delete-event" signal, and return TRUE from it if you want the window to remain, FALSE if you'd like it closed:
http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-delete-event

   -brian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]