views:

42

answers:

1

How do tell a Tk widget to tell me what (or who as the case may be) its children are? Is there a command for this?

For example given a canvas widget .cvs with a label, a button and other adornments ... How do interrogate the canvas?

+6  A: 
winfo children $widget

see http://www.tcl.tk/man/tcl8.5/TkCmd/winfo.htm#M8

Bryan Oakley