Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Do you know where your variables are?
 
PerlMonks  

Re: Tk onExit

by arden (Curate)
on Jul 21, 2004 at 20:15 UTC ( #376368=note: print w/ replies, xml ) Need Help??


in reply to Tk onExit

Here's how I do it with my applications. Create a subroutine exitApp and use OnDestroy with the first MainWindow to call it when somebody destroys (closes) that main widget. That is the definition of the program closing.

my $mw = new MainWindow(); $mw->OnDestroy( \&exitApp );
- - arden.


Comment on Re: Tk onExit
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2013-05-25 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (519 votes), past polls