is a menu item that maintains the state of a boolean value in addition to a
usual role in activating application code. A check box indicating the state
of the boolean value is displayed at the left side of the gtk.MenuItem.
Activating the gtk.MenuItem
toggles the value.
a string to be used as the label text or
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.
a new checkmenuitem
Creates a new checkmenuitem 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
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.
If True set the check box
The set_active() method sets the active
state of the menu item's check box according to the value of
True if the menu item is
checked (check box is active).
The toggle() method emits the "toggled" signal on the
If True display an
"inconsistent" third state check
The set_inconsistent() method sets the
check box to display an "inconsistent" state if the value of
setting is True. The
"inconsistent" state display is removed if setting is
An application may want to display an "inconsistent" state if
the user has selected a range of elements (such as some text or spreadsheet
cells) that are affected by a boolean setting, and the current values for
those elements cannot be represented by a single checkmenuitem state. The
set_inconsistent() method only affects visual
appearance, it doesn't affect the semantics of the widget.
True if the checkmenuitem
displays the "inconsistent" state