Fixing Leo and Idle OS shutdown bug?

Edward K. Ream edream at
Wed Aug 7 10:30:42 EDT 2002

Leo does not prompt the user to save unsaved files when Windows 2K or XP is
shutting down.  Neither does IDLE.

Is there any way to interrupt the shutdown process in TK?  I have tried
binding to Destroy or WM_DELETE_WINDOW for the top level window, like this,
with no effect:

root.bind("<Destroy>", onKillLeoEvent)
root.protocol("WM_DELETE_WINDOW", onKillLeoEvent)

Heck, this code doesn't even fire when I close Leo the regular way.

Does anyone know of a way to get the job done?  Thanks.

Edward K. Ream   email:  edream at
Leo: Literate Editor with Outlines

More information about the Python-list mailing list