| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Radiobox

The radiobox iwidget provides radiobutton management support. The class supports adding, inserting, deleting, selecting, and configuring radiobuttons as well as obtaining the currently selected button. For further information, see the Radiobox manpage

Components: childsite hull label
				

wm title . "Radiobox Example"

##
##	Helper proc
##
proc changeFont {} {
	.rb configure -labelfont [.rb get]

	return
}; # end proc changeFont

##=========================================================
##	Create a radiobox iwidget
##=========================================================
##
iwidgets::radiobox .rb \
	-labeltext "Select a Font" \
	-selectcolor blue

foreach f {times helvetica courier symbol} {
	.rb add $f \
		-text [string totitle $f]
}


##
##	Add a command to the radiobutton
##	select
##
.rb configure \
	-command {changeFont}

##
##	select one of the radiobuttons
##
.rb select symbol

pack .rb \
	-padx 10 \
	-pady 10 \
	-fill both \
	-expand yes

Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site