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

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

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