direct.gui.DirectCheckButton

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.

Inheritance diagram

Inheritance diagram of direct.gui.DirectCheckButton

class DirectCheckButton(parent=None, **kw)[source]

Bases: DirectButton

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)[source]
commandFunc(self, event)[source]
resetFrameSize(self)[source]
setFrameSize(self, fClearFrame=0)[source]
setIndicatorValue(self)[source]