5

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?

Donal Fellows
  • 133,037
  • 18
  • 149
  • 215
Xofo
  • 51
  • 2

1 Answers1

9
winfo children $widget

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

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685