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

A Simplified Tk Reference

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

checkbutton

Description: Buttons but with toggle properties. Normally has an indicator box that is colored in when active but that can be left out leaving something more like a normal button.
Example:
#note- Simple ordinary checkbutton arrangement
checkbutton .t1 -text Onions -anchor w
checkbutton .t2 -text Mushrooms -anchor w
checkbutton .t3 -text "Banana Peppers" -anchor w
pack .t1 .t2 .t3 -fill x
  
Example:
 #note- Simple checkbutton arrangement without idicators
checkbutton .t1 -text Defrost -indicatoron 0
checkbutton .t2 -text "Fog Lights" -indicatoron 0
checkbutton .t3 -text "Emergency Lights" -indicatoron 0
pack .t1 .t2 .t3 -fill x
 
Official
Syntax:
http://www.scriptics.com/man/tcl8.4/TkCmd/checkbutton.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