Re: top level windows query
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 15:27:29 GMT
pollastri@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.
If this is to solve a problem in your own application, another choice is to simply keep a list of each toplevels, adding to the list each time you create another one.
--
Bryan Oakley
http://www.tclscripting.com
.
- Follow-Ups:
- Re: top level windows query
- From: Alexandre Ferrieux
- Re: top level windows query
- References:
- top level windows query
- From: pollastri
- top level windows query
- Prev by Date: Re: How to implement pointer operation
- Next by Date: Re: Tcl C extn - Scoping in extended cmds - how to?
- Previous by thread: top level windows query
- Next by thread: Re: top level windows query
- Index(es):
Relevant Pages
|