1destroy(n)                   Tk Built-In Commands                   destroy(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       destroy - Destroy one or more windows
9

SYNOPSIS

11       destroy ?window window ...?
12______________________________________________________________________________
13

DESCRIPTION

15       This  command  deletes  the windows given by the window arguments, plus
16       all of their descendants.  If a window “.”  is deleted then all windows
17       will  be  destroyed and the application will (normally) exit.  The win‐
18       dows are destroyed in order, and if an error  occurs  in  destroying  a
19       window the command aborts without destroying the remaining windows.  No
20       error is returned if window does not exist.
21

EXAMPLE

23       Destroy all checkbuttons that are direct children of the given widget:
24              proc killCheckbuttonChildren {parent} {
25                 foreach w [winfo children $parent] {
26                    if {[winfo class $w] eq "Checkbutton"} {
27                       destroy $w
28                    }
29                 }
30              }
31

KEYWORDS

33       application, destroy, window
34
35
36
37Tk                                                                  destroy(n)
Impressum