destroy(3tk) Tk Built-In Commands destroy(3tk)__________________________________________________________________________________________________________________________________________________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 win-
dows will be destroyed and the application will (normally) exit. The windows 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
Tkdestroy(3tk)
Check Out this Related Man Page
tk_focusNext(3tk) Tk Built-In Commands tk_focusNext(3tk)__________________________________________________________________________________________________________________________________________________NAME
tk_focusNext, tk_focusPrev, tk_focusFollowsMouse - Utility procedures for managing the input focus.
SYNOPSIS
tk_focusNext window
tk_focusPrev window
tk_focusFollowsMouse
_________________________________________________________________DESCRIPTION
tk_focusNext is a utility procedure used for keyboard traversal. It returns the "next" window after window in focus order. The focus order
is determined by the stacking order of windows and the structure of the window hierarchy. Among siblings, the focus order is the same as
the stacking order, with the lowest window being first. If a window has children, the window is visited first, followed by its children
(recursively), followed by its next sibling. Top-level windows other than window are skipped, so that tk_focusNext never returns a window
in a different top-level from window.
After computing the next window, tk_focusNext examines the window's -takefocus option to see whether it should be skipped. If so,
tk_focusNext continues on to the next window in the focus order, until it eventually finds a window that will accept the focus or returns
back to window.
tk_focusPrev is similar to tk_focusNext except that it returns the window just before window in the focus order.
tk_focusFollowsMouse changes the focus model for the application to an implicit one where the window under the mouse gets the focus. After
this procedure is called, whenever the mouse enters a window Tk will automatically give it the input focus. The focus command may be used
to move the focus to a window other than the one under the mouse, but as soon as the mouse moves into a new window the focus will jump to
that window. Note: at present there is no built-in support for returning the application to an explicit focus model; to do this you will
have to write a script that deletes the bindings created by tk_focusFollowsMouse.
KEYWORDS
focus, keyboard traversal, top-level
Tk 4.0 tk_focusNext(3tk)
I am "retiring" an old unix box and need to erase all sensitive data so that it can not be recovered. Does anyone know a unix command for this? (5 Replies)
What is a good way to find an entry in a .conf file and then remove all lines associated with that entry?
I have a Samba server running on Linux that I would like to easily add/remove share entries in the smb.conf file without removing or deleting lines that are not associated with that section.... (5 Replies)
I belong on the 'UNIX for Dummies Questions' forum but I need to delete information on a sensitive SUN box. The company is going to use the box for a web server and I need to have the hard drives Completely clean!!!
One of the bosses 'friends' through out the term 13th level. And now it's the... (10 Replies)
Hi Guys
I have a cool job to do and that's to destroy aix5.1 on two of my servers. I need to get rid of all information. I have thought of a way of doing this and wondered if any of you had any ideas!!
Get the machine into maint mode and run the dd cmd! (7 Replies)
As part of a multi-threaded code that I am designing, I am using mutexes to control access to a shared data segments in the code. I have no problems initalising and manipulating the mutexes to control access, however terminating the mutex itself is proving to be a bit difficult.
I am... (3 Replies)
Hi All,
I am creating detached threads using pthread_create(). As we know, we need to pass the thread attribute structure as an argument to the pthread_Create() API.
I want to know what is the good time to destroy this thread attributes using pthread_attr_destroy() call. Also, I want to know... (2 Replies)
I was using my computer normally, then started up kvpnc to remote into a system. On disconnecting from kvpnc and closing the program, my internet connection would not work -- no sites loaded. Two restarts didn't help. I then opened the program and connected, which let me post this. But I don't... (5 Replies)
Hi,
I have problem creating hardware raid on T5120 with 4 disks. After the hardware raid 1 created, then I used the raidctl -l c1t0d0 and raidctl -l c1t2d0
the output of volume c1t0d0 contain disk 0.0.0 0.1.0, also the volume c1t2d0 contain disk 0.0.0 0.1.0 and should be 0.2.0 0.3.0
so I... (15 Replies)
Inspite of my best efforts, eclipse 3.5 seems to continue to misbehave and insert tab characters in my source code.
How do I write a script execute from emacs to search all my files for tab characters and conveniently position me on the line of code that has the offending tab?
Here are my... (7 Replies)
OK, I'm trying search and destroy tabs again.
This time I'm having trouble excluding certain directories from my search.
Here is what I have tried and it is not ignoring the top level build directory:
find . -path ./build -prune -name \*.java -o -print | xargs grep -i ' '
I don't... (6 Replies)
I messed up my pool by doing zfs send...recive So I got the following :
zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
rpool 928G 17.3G 911G 1% 1.00x ONLINE -
tank1 928G 35.8G 892G 3% 1.00x ONLINE -
So I have "tank1" pool.
zfs get all... (8 Replies)
I was trying to delete and recreate a filesystem, thinking it would be a quick way of deleting all of the files off of it, and I fear that I messed up. Here is the original entry from /etc/filesystems:
data01:
dev = /dev/fslv00
vfs = jfs2
log ... (5 Replies)
Being a beginner in scripting I am not sure the direction to take to accomplish the below task and would love suggestions.
GOAL
input file: domains.list
Read input file, search in named.conf and find domain and delete entry for the purpose of cleanup activity.
named.conf entry example
zone... (8 Replies)
Hi,
I want to use the below functions on solaris box
SunOS 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V240
Commands are
hcreate_r
hdestroy_r
hsearch_data (a structure)
These are re-entrants version of hcreate & hdestroy functions available in <search.h>
My questions is that I... (5 Replies)
I don't know enough about this subject but this is for the big guns...
Yesterday:-
Man accidentally 'deletes his entire company' with one line of bad code | News | Lifestyle | The Independent (5 Replies)