FXRadioButton

A radio button is a tri-state button. Normally, it is either True or False; a third state MAYBE may be set to indicate that no selection has been made yet by the user, or that the state is ambiguous. When pressed, the radio button sets its state to True and sends a SEL_COMMAND to its target, and the message data set to the state of the radio button, of the type FXbool. If the radio button is contained inside a group box, the other radio buttons in the group box will be set to False and will send a message as well.


FXRadioButton(p, text, tgt=None, sel=0, opts=RADIOBUTTON_NORMAL, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD)

Construct new radio button.

ArgumentTypeDefaultDescription
pFXComposite  
textString  
tgtFXObjectNone 
selInt0 
optsIntRADIOBUTTON_NORMAL 
xInt0 
yInt0 
wInt0 
hInt0 
plIntDEFAULT_PAD 
prIntDEFAULT_PAD 
ptIntDEFAULT_PAD 
pbIntDEFAULT_PAD 


canFocus()

Returns True because a radio button can receive focus.

Reimplemented from FXWindow.


getCheck()

Get radio button state (True, False or MAYBE).


getDefaultHeight()

Get default height.

Reimplemented from FXLabel.


getDefaultWidth()

Get default width.

Reimplemented from FXLabel.


setCheck(s=True)

Set radio button state (True, False or MAYBE).

ArgumentTypeDefaultDescription
sBoolTrue 


Global flags

RadioButton flags

RADIOBUTTON_AUTOGRAY

Automatically gray out when not updated.

RADIOBUTTON_AUTOHIDE

Automatically hide when not updated.