Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

destroy (1t)

Name

destroy - Destroy one or more windows

Synopsis

destroy ?window window ...?

Description

destroy(1t)                  Tk Built-In Commands                  destroy(1t)



______________________________________________________________________________

NAME
       destroy - Destroy one or more windows

SYNOPSIS
       destroy ?window window ...?
______________________________________________________________________________

DESCRIPTION
       This  command  deletes  the windows given by the window arguments, plus
       all of their descendants.  If a window "."  is deleted then all windows
       will  be  destroyed and the application will (normally) exit.  The win-
       dows are destroyed in order, and if an error  occurs  in  destroying  a
       window the command aborts without destroying the remaining windows.  No
       error is returned if window does not exist.

EXAMPLE
       Destroy all checkbuttons that are direct children of the given widget:
              proc killCheckbuttonChildren {parent} {
                 foreach w [winfo children $parent] {
                    if {[winfo class $w] eq "Checkbutton"} {
                       destroy $w
                    }
                 }
              }

KEYWORDS
       application, destroy, window



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | runtime/tk-8     |
       +---------------+------------------+
       |Stability      | Uncommitted      |
       +---------------+------------------+
NOTES
       This    software    was    built    from    source     available     at
       https://github.com/oracle/solaris-userland.    The  original  community
       source        was        downloaded        from         https://source-
       forge.net/projects/tcl/files/Tcl/8.6.7/tk8.6.7-src.tar.gz/download

       Further information about this software can be found on the open source
       community website at https://www.tcl.tk/.



Tk                                                                 destroy(1t)