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.
- class DirectRadioButton(parent=None, **kw)
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)
- commandFunc(self, event)
- setFrameSize(self, fClearFrame=0)
- setOthers(self, others)