Russell Owen wrote:
One more bit of information from Daniel A. Steffen in response to a PR I
submitted:
<https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2745650&group_id=12997>
=== begin quote ===
Iif the tcl proc '::tk::mac::Quit' is defined, it gets called instead of
exit upon receipt of a 'quit' apple event (which is what the standard
quit menu item sends, as well as other entities in the system such as
the dock menu quit item or the graceful Finder restart/shutdown, this is
why the quit menu item is special). If ::tk::mac::Quit returns false,
the application is not quit.
other default apple event handlers are also defined, c.f.
tkMacOSXHLEvent.c
==== end quote ====
I forgot about ::tk::mac::Quit--Daniel's right, that's probably a
cleaner way to go about this than my suggestion.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss