Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi, On Tue, 26 Jan 2010 20:00:56 +0100 Geoff Bache wrote: > Hi again Michael, > > >> Why doesn't it work to bind to "" like I did? That seemed > >> the intuitive way to go, and it seems to work on Linux... > >> > > > > I don't have a windows box at hand, so I cannot tell. On my linux > > box it

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Geoff Bache
Hi again Michael, >> Why doesn't it work to bind to "" like I did? That seemed >> the intuitive way to go, and it seems to work on Linux... >> > > I don't have a windows box at hand, so I cannot tell. On my linux box > it works, but when I bind the callback to the root tk window the > callback is

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi Geoff, On Tue, 26 Jan 2010 13:45:49 +0100 Geoff Bache wrote: (...) > Hi Michael, > > Yes, I'd seen that, but it doesn't really fit the criteria of being > independent of how > it's closed. As far as I can see it will get called when the window's > close button > is pressed, and nothing else,

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Geoff Bache
On Tue, Jan 26, 2010 at 1:34 PM, Geoff Bache wrote: > Hi Geoff, > > On Tue, 26 Jan 2010 10:11:31 +0100 > Geoff Bache wrote: > >> Hi all, >> >> How would you add some code that is called when the application is >> terminated, that is independent of whether it was closed via the >> window manager o

Re: [Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Michael Lange
Hi Geoff, On Tue, 26 Jan 2010 10:11:31 +0100 Geoff Bache wrote: > Hi all, > > How would you add some code that is called when the application is > terminated, that is independent of whether it was closed via the > window manager or via some programmatic call within the application, > such as a

[Tkinter-discuss] Doing things on Tkinter termination

2010-01-26 Thread Geoff Bache
Hi all, How would you add some code that is called when the application is terminated, that is independent of whether it was closed via the window manager or via some programmatic call within the application, such as a call from a "quit" button? I tried binding to the "destroy" event like this: