# -Q2.F.11- destroy every window except '.'?

    From: -II-  Tk Questions and Answers - How can I:

    A2.F.11.  Based on a posting by tromey@klab.caltech.edu (Tom Tromey):
    To destroy every  window in the application just use the
    'destroy' command.  In previous versions of Tk, destroy accepted only
    a single argument, but now it accepts a variable number of window names
    to destroy.  Thus, to get rid of everything, use the command

         eval destroy [winfo children .]

    The 'eval' is necessary so that the list of children windows can be
    separated into individual arguments.  Destroy will get individual
    window names instead of one big string.

    ------------------------------

    End of comp.lang.tcl Tk Toolkit Usage Questions and Answers (1/1)
    *****************************************************
    --
    ------------------------------------------------------------------------------
    Thomas J. Accardo          tja@cpu.com | I hope life isn't just some big joke,
    Computerized Processes Unlimited, Inc. | because if it is, I don't get it.
    Metairie, LA      Voice (504) 889-2784 |      -- Deep Thoughts by Jack Handey

Parent document is top of "FAQ: comp.lang.tcl Tk Toolkit Usage Questions And Answers (1/1)"
Previous document is "-Q2.F.10- find my invisible windows when using the packer?"