Re: top level windows query
- From: Alexandre Ferrieux <alexandre.ferrieux@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 21:09:57 -0000
On Jun 28, 5:27 pm, Bryan Oakley <oak...@xxxxxxxxxxxxxxxxxxxx> wrote:
pollas...@xxxxxxxx wrote:
Hello,
I need to query the tcl interpreter to know the list of all top level
windows. There is any specific command? Thank in advance for any help.
There is no specific command. It's fairly easy to get a list of all
children in a window. From that, you can query each child to determine
if it is a toplevel. Then do the same for each child. Lather, rinse,
repeat until you've examined all the widgets.
Right. And we may help the OP a tad further by reminding him that the
root of all this hierarchy is named ".".
(eons ago when I discovered Tk, this slight lack of symmetry in widget
paths bothered me for several seconds: "." and ".t" may be equal
toplevels...)
-Alex
.
- Follow-Ups:
- Re: top level windows query
- From: Bruce Hartweg
- Re: top level windows query
- References:
- top level windows query
- From: pollastri
- Re: top level windows query
- From: Bryan Oakley
- top level windows query
- Prev by Date: Re: Tcl C extn - Scoping in extended cmds - how to?
- Next by Date: Re: top level windows query
- Previous by thread: Re: top level windows query
- Next by thread: Re: top level windows query
- Index(es):
Relevant Pages
|