from direct.gui.DirectRadioButton import DirectRadioButton

A DirectRadioButton is a type of button that, similar to a DirectCheckButton, has a separate indicator and can be toggled between two states. However, only one DirectRadioButton in a group can be enabled at a particular time.

See the DirectRadioButton 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.DirectRadioButton

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

Bases: DirectButton

DirectRadioButton(parent) - Create a DirectGuiWidget which responds to mouse clicks by setting given value to given variable and execute a callback function (passing that state through) if defined

__init__(self, parent=None, **kw)[source]
commandFunc(self, event)[source]
setFrameSize(self, fClearFrame=0)[source]
setOthers(self, others)[source]