[Image of Linux]
The Personal Web Pages of Chris X. Edwards

A Simplified Tk Reference

--------------------------
Keyword:

radiobutton

Description: Just like checkbuttons but they can (and should) unselect other radiobuttons that share a common variable. Thus, the -variable option binds radiobuttons together. The -value button must be used in most cases or the radiobuttons will share a default value and get confused.
Example:

radiobutton .r1 -text "White" -value "white" -variable bread -anchor w
radiobutton .r2 -text "Wheat" -value "wheat" -variable bread -anchor w
radiobutton .r3 -text "Sourdough" -value "sour" -variable bread -anchor w
pack .r1 .r2 .r3 -fill x

  
Official
Syntax:
http://www.scriptics.com/man/tcl8.4/TkCmd/radiobutton.htm

--------------------------
Previous Home Next
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system.
Chris X. Edwards ~ January 2004