Node:button, Next:checkbutton, Previous:message, Up:Widget creation
button
Calling the button
command creates an instance of a button widget.
An example is:
button .mybutton -text "hello" -command {puts "howdie!"}
which creates a button with name .mybutton
that will display
the text "hello" and will execute the Tcl script puts "howdie!"
(that is print howdie!
to the terminal) when clicked on.