Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I detect that application is closed

Status
Not open for further replies.

akpr

Programmer
Jul 25, 2001
19
0
0
US
How do I detect that application is closed , if the application quit by clicking [x] mark and by double clinking extreme left corner
 
Use wm protocol like that:

wm protocol . WM_DELETE_WINDOW ask
proc ask {} {
set rc [tk_messageBox -message "really want to close?" -type yesno]
if {"$rc" == "yes"} { destroy . }
}


ulis
 
Where do i get Tree Widget. I got one but it is not usual for me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top