tk_toplist {utilitiesR}R Documentation

Get names of all toplevel tk windows

Description

Get names of all toplevel tk windows

Usage

  tk_toplist(root = ".")

Arguments

root

string giving parent window : i.e., get names of all toplevel tk windows that are descendants of root.

Details

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 } 

Value

a character array of all toplevel tk windows that are descendants of root, or character(0) if there are none.


[Package utilitiesR version 1.8.4 Index]