Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get the children of a Tk Widget?

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?

like image 600
Xofo Avatar asked May 12 '10 22:05

Xofo


1 Answers

winfo children $widget

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

like image 149
Bryan Oakley Avatar answered Oct 02 '22 17:10

Bryan Oakley