Re: gtk.window close button disconnet
- From: "Brian J. Tarricone" <bjt23 cornell edu>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk.window close button disconnet
- Date: Fri, 01 Oct 2004 00:51:29 -0700
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]