Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tcl::Tk exit

by tybalt89 (Monsignor)
on May 24, 2017 at 19:13 UTC ( [id://1191136]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found