Fixing Leo and Idle OS shutdown bug?

Edward K. Ream edream at tds.net
Wed Aug 7 16:30:42 CEST 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)
root.mainloop()

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
--------------------------------------------------------------------
Edward K. Ream   email:  edream at tds.net
Leo: Literate Editor with Outlines
Leo: http://personalpages.tds.net/~edream/front.html
--------------------------------------------------------------------






More information about the Python-list mailing list