Re: top level windows query



On Jun 28, 11:31 pm, Bruce Hartweg <doNOT...@xxxxxxxxxxx> wrote:
Alexandre Ferrieux wrote:

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

By "equal" I mean none is more "toplevel" than the other (they are
siblings for the window manager).
The lack of symmetry is in the naming since one is a prefix of the
other.
And yes, we all know toplevels can be deep in the name path, hence
Bryan's suggestion to recurse with [winfo children] and check toplevel-
ness for each window.

Thanks Bruce, next time we need clarification we won't forget you ;-)

-Alex

.