in reply to Tcl::Tk exit

I have neither Tcl::Tk nor a Mac, but my usual way to exit a Tk program is

$mw->Button(-text=>"Exit",-command=>sub{$mw->destroy})->pack();

this causes the MainLoop to return (so you could do some other cleanup before actually exiting).

Replies are listed 'Best First'.
Re^2: Tcl::Tk exit
by Sandy (Curate) on May 24, 2017 at 20:44 UTC
    Never, ever thought of that. Thank you!