tk_toplist {utilitiesR} | R Documentation |
Get names of all toplevel tk windows
tk_toplist(root = ".")
root |
string giving parent window : i.e., get names
of all toplevel tk windows that are descendants of
|
Taken from algorithm in http://wiki.tcl.tk/1461:
proc toplist {{W .}} { set list {} if { [string equal [winfo toplevel $W] $W] } { lappend list $W } foreach w [winfo children $W] { set list [concat $list [toplist $w]] } return $list }
a character array of all toplevel tk windows that are
descendants of root
, or character(0)
if
there are none.