catching X client kills in Tkinter

Randall Hopper aa8vb at yahoo.com
Tue Feb 29 09:21:15 EST 2000


Timothy Docker:
 |Is it possible to catch the failure of a Tkinter based application
 |when the server connection is closed (ie under X11 and unix).

For close (typically bound to the "X" window manager icon):

  top.protocol( 'WM_DELETE_WINDOW', MyCleanupFunct )

I don't know if you can catch an X kill (maybe with signal handlers, unless
it materializes as a SIGKILL or another uncatchable signal).

-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list