Re: Bug in STk-3.99.4 related to <Destroy> event

From: Erick Gallesio <eg_at_unice.fr>
Date: Sun, 28 Feb 1999 11:01:54 +0100 (CET)

David Fox writes:
> > This is not a bug but rather a Tk feature. In fact, the object is
> > destroyed and AFTER that the binding is execute. The Tcl/Tk example
> > below exemplifies this:
> > button .b -text
> > pack .b
> > bind .b <Destroy> {%W configure -bg red}
> > destroy .b
> > will lead to an ``invalid command name ".b"'' message
> >
>
> [STk code deleted]
>
>
> I see. I think the problem was that I was converting TCL code to
> Scheme and in TCL the window variable doesn't get evaluated. Or
> something like that. Thanks!

Yes this why I used a "configure" in the Tcl binding rather than a
simple "puts".

                -- Erick
Received on Sun Feb 28 1999 - 22:27:46 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST