from direct.gui.DirectCheckButton import DirectCheckButton
A DirectCheckButton is a type of button that toggles between two states when clicked. It also has a separate indicator that can be modified separately.
See the DirectCheckButton page in the programming manual for a more in-depth explanation and an example of how to use this class.
- class DirectCheckButton(parent=None, **kw)¶
DirectCheckButton(parent) - Create a DirectGuiWidget which responds to mouse clicks by setting a state of on or off and execute a callback function (passing that state through) if defined
- __init__(self, parent=None, **kw)¶
- commandFunc(self, event)¶
- setFrameSize(self, fClearFrame=0)¶