The Personal Web Pages of Chris X. Edwards
A Simplified Tk Reference
|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.|
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
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|