I use:
eval destroy [winfo children $win]
where win is set to the base window whose children you want to
destroy. You need the eval because destroy expects the windows you
want destroying to be given as separate arguments, as opposed to a
list.
I quite often find myself wanting to convert a list into separate
arguments like this, I'm sure there must be a more elegant
way to do this, but I am yet to find it. I'd be grateful if anyone
out there can enlighten me.
> Hi,
>
> I have a question: I have put many widgets in a base window.
> Now I want to renew this base window. How can I destroy all
> existing widgets one time ?
>
> thanks !
>
> Guangwei Bai
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).