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
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
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
32
34 application, destroy, window
35
36
37
38Tk destroy(n)