Re: gtk.window close button disconnet
- From: Brian <dol-sen telus net>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: gtk.window close button disconnet
- Date: Fri, 01 Oct 2004 01:14:58 -0700
On Fri, 2004-10-01 at 00:51, Brian J. Tarricone wrote:
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
Thanks. I was too stuck on the destroy signal & I saw the
delete-event, but did not think it applied to the window.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Brian <dol-sen telus net>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]