destroy.n
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- '"
- '" Copyright (c) 1990 The Regents of the University of California.
- '" Copyright (c) 1994-1996 Sun Microsystems, Inc.
- '"
- '" See the file "license.terms" for information on usage and redistribution
- '" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- '"
- '" RCS: @(#) $Id: destroy.n,v 1.2.26.1 2004/10/28 10:19:29 dkf Exp $
- '"
- .so man.macros
- .TH destroy n "" Tk "Tk Built-In Commands"
- .BS
- '" Note: do not modify the .SH NAME line immediately below!
- .SH NAME
- destroy - Destroy one or more windows
- .SH SYNOPSIS
- fBdestroy fR?fIwindow window ...fR?
- .BE
- .SH DESCRIPTION
- .VS
- .PP
- This command deletes the windows given by the
- fIwindowfR arguments, plus all of their descendants.
- If a fIwindowfR ``.'' is deleted then the entire application
- will be destroyed.
- The fIwindowfRs 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 fIwindowfR does not exist.
- .VE
- .SH EXAMPLE
- Destroy all checkbuttons that are direct children of the given widget:
- .CS
- proc killCheckbuttonChildren {parent} {
- foreach w [winfo children $parent] {
- if {[winfo class $w] eq "Checkbutton"} {
- fBdestroyfR $w
- }
- }
- }
- .CE
- .SH KEYWORDS
- application, destroy, window