ttk::checkbutton - Online Linux Manual PageSection : n
Updated : 8.5
Source : Tk
Note : Tk Themed Widget


NAMEttk::checkbutton − On/off widget

SYNOPSISttk::checkbutton pathName ?options? .\}

DESCRIPTIONA ttk::checkbutton widget is used to show or change a setting. It has two states, selected and deselected. The state of the checkbutton may be linked to a Tcl variable.

STANDARD OPTIONS−class −compound −cursor −image −state −style −takefocus −text −textvariable −underline −width See the ttk_widget manual entry for details on the standard options.

WIDGET-SPECIFIC OPTIONS [ −command command ] A Tcl script to execute whenever the widget is invoked. [ −offvalue offValue ] The value to store in the associated −variable when the widget is deselected. Defaults to 0. [ −onvalue onValue ] The value to store in the associated −variable when the widget is selected. Defaults to 1. [ −variable variable ] The name of a global variable whose value is linked to the widget. Defaults to the widget pathname if not specified.

WIDGET COMMANDIn addition to the standard cget, configure, identify, instate, and state commands, checkbuttons support the following additional widget commands: pathname invoke  Toggles between the selected and deselected states and evaluates the associated −command. If the widget is currently selected, sets the −variable to the −offvalue and deselects the widget; otherwise, sets the −variable to the −onvalue Returns the result of the −command.

WIDGET STATESThe widget does not respond to user input if the disabled state is set. The widget sets the selected state whenever the linked −variable is set to the widget's −onvalue, and clears it otherwise. The widget sets the alternate state whenever the linked −variable is unset. (The alternate state may be used to indicate a tri-state or indeterminate selection.)

STANDARD STYLESTtk::checkbutton widgets support the Toolbutton style in all standard themes, which is useful for creating widgets for toolbars.

STYLING OPTIONSThe class name for a ttk::checkbutton is TCheckbutton. Dynamic states: active, alternate, disabled, pressed, selected, readonly. TCheckbutton styling options configurable with ttk::style are: −background color
−compound compound
−foreground color
−indicatorbackground color
−indicatorcolor color
−indicatormargin padding
−indicatorrelief relief
−padding padding
Some options are only available for specific themes. See the ttk::style manual page for information on how to configure ttk styles.

SEE ALSOttk::widget(n), ttk::radiobutton(n), checkbutton(n)

KEYWORDSwidget, button, toggle, check, option
0
Johanes Gumabo
Data Size   :   13,843 byte
man-ttk_checkbutton.nBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 239,347
Visitor ID   :     :  
Visitor IP   :   52.14.173.116   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_escape_sequence_block|26|(null)|(null)|-1|139)         (parse_manual_page_|249|ttk_checkbutton.n|280/139|══─}─══|.══─}─══ )         (htmlprn|149|ttk_checkbutton.n|280/139|.══─}─══|.══─}─══ )         (rof_escape_sequence|91|ttk_checkbutton.n|280/140|\}|.\} )         (parse_manual_page_|249|ttk_checkbutton.n|280/140|\}|.\} )         (rof_OP|10|ttk_checkbutton.n|292|4|.OP \-command command Command )         (rof_OP|10|ttk_checkbutton.n|294|4|.OP \-offvalue offValue OffValue )         (rof_OP|10|ttk_checkbutton.n|297|4|.OP \-onvalue onValue OnValue )         (rof_OP|10|ttk_checkbutton.n|300|4|.OP \-variable variable Variable )