Search the web
Sign In
New User? Sign Up
tix · The Tix User Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
execute command when closing window   Message List  
Reply | Forward Message #1016 of 1043 |
Re: [tix] execute command when closing window


On Thu, 03 Feb 2005 17:08:56 -0000, herrington_john <jdherrin@...> wrote:
> I was wondering if there were a way to execute a command upon closing
> a window. It's clear to me how a procedure could get executed in
> conjuntion with the destroy command; what I haven't been able to
> figure out is how to have a command executed when a user kills a
> window by clicking the "X" in the upper right-hand corner. Is there a
> way to bind a command to that particular way of closing a window? I
> apologize if this question is better posed to another list, perhaps
> related to wish or tcl/tk - it isn't always clear to me what the
> boundaries are between these. Thanks - John

It is a window manager command, part of Tk. You do:

wm protocol WM_DELETE_WINDOW "whatever you wanna do"

Carlos






Thu Feb 3, 2005 6:38 pm

carlos@...
Send Email Send Email

Forward
Message #1016 of 1043 |
Expand Messages Author Sort by Date

I was wondering if there were a way to execute a command upon closing a window. It's clear to me how a procedure could get executed in conjuntion with the...
herrington_john
Offline Send Email
Feb 3, 2005
5:12 pm

... It is a window manager command, part of Tk. You do: wm protocol WM_DELETE_WINDOW "whatever you wanna do" Carlos...
Carlos Vidal
carlos@...
Send Email
Feb 3, 2005
6:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help