Re: top level windows query
- From: Bruce Hartweg <doNOTuse@xxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 16:31:34 -0500
Alexandre Ferrieux wrote:
On Jun 28, 5:27 pm, Bryan Oakley <oak...@xxxxxxxxxxxxxxxxxxxx> wrote:pollas...@xxxxxxxx wrote:Hello,There is no specific command. It's fairly easy to get a list of all
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.
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...)
not sure what you mean by equal, but a toplevel can be a child of any widget
not just . so "." ".t" ".t.t2" ".f1.f2.f3.f4.f5.t3" can all be toplevels
Bruce
.
- Follow-Ups:
- Re: top level windows query
- From: Alexandre Ferrieux
- Re: top level windows query
- References:
- top level windows query
- From: pollastri
- Re: top level windows query
- From: Bryan Oakley
- Re: top level windows query
- From: Alexandre Ferrieux
- top level windows query
- Prev by Date: Re: top level windows query
- Next by Date: Re: need example for encryption in tcl
- Previous by thread: Re: top level windows query
- Next by thread: Re: top level windows query
- Index(es):
Relevant Pages
|