1destroy(n) Tk Built-In Commands destroy(n)
2
3
4
5______________________________________________________________________________
6
8 destroy - Destroy one or more windows
9
11 destroy ?window window ...?
12_________________________________________________________________
13
14
16 This command deletes the windows given by the window arguments, plus │
17 all of their descendants. If a window ``.'' is deleted then the entire │
18 application will be destroyed. The windows are destroyed in order, and │
19 if an error occurs in destroying a window the command aborts without │
20 destroying the remaining windows. No error is returned if window does │
21 not exist.
22
24 Destroy all checkbuttons that are direct children of the given widget:
25 proc killCheckbuttonChildren {parent} {
26 foreach w [winfo children $parent] {
27 if {[winfo class $w] eq "Checkbutton"} {
28 destroy $w
29 }
30 }
31 }
32
33
35 application, destroy, window
36
37
38
39Tk destroy(n)