gtk.CheckButton
gtk.CheckButton — a toggle button widget styled as a checkbox and label
Constructor
gtk.CheckButton(label=None, use_underline=TRUE)
|
label : | a string to be used as the label text or
None |
use_underline : | if TRUE, an underscore in the
label text indicates the next character should be underlined and
used for the mnemonic accelerator key if it is the first character
so marked. Available in PyGTK 2.4 and above. |
Returns : | a new checkbutton object |
Creates a new checkbutton with a text label specified by
label. If label is
None or not specified then no label is created. If
label contains underscore characters then the
character following the underscore will be underlined and the character
following the first underscore will be used as the mnemonic keyboard
accelerator.
In PyGTK 2.4 and above the use_underline
parameter is available and defaults to TRUE. If
use_underline is set to FALSE the
label text will not be parsed for mnemonic characters.