Python Reference Guide
 
Loading...
Searching...
No Matches
FBButtonGroup Class Reference

Button group class used to manage multiple radio buttons. More...

#include <pyfbsdk_additions.h>

Inheritance diagram for FBButtonGroup:

Public Member Functions

 FBButtonGroup ()
 
 Add (btn)
 Add a radio button to group.
 
 AddCallback (callback)
 Add a callback that will be call when a radiobutton in the group is clicked.
 

Detailed Description

Button group class used to manage multiple radio buttons.

This class ensure that only one radio button is enabled (it does all the ClickState management)

  • Use the Add method to Add new radio button to the group.
  • Use AddCallback method to register a UNIQUE callback that will be called when ANY of the registered radio buttons is clicked.

See sample: RadioButton.py.

Constructor & Destructor Documentation

◆ FBButtonGroup()

Member Function Documentation

◆ Add()

Add ( btn  )

Add a radio button to group.

◆ AddCallback()

AddCallback ( callback  )

Add a callback that will be call when a radiobutton in the group is clicked.