[Tutor] tree of my program's widgets?

Lance E Sloan lsloan@umich.edu
Tue, 19 Feb 2002 09:28:19 -0500


I've another Tkinter question.  I searched the web and Parnassus for
this, but didn't find anything.  Maybe I just used the wrong search
terms.

What I'm trying to find is a function that will produce a "tree-like"
listing of all widgets used in my program when I pass it a reference to
the "root" Tkinter object.  Or for that matter, passing a reference to
any Tkinter object will produce a tree with that widget as the root.

Anybody heard of such a thing?  If not, I'll try to write one myself.

Thanks in advance!

--
Lance E Sloan
Web Services, Univ. of Michigan: Full-service Web and database design,
development, and hosting.  Specializing in Python & Perl CGIs.
http://websvcs.itd.umich.edu/ - "Putting U on the Web"