Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  How can I destroy every window except `.`?
 
 The answer is:

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.