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.
Public Member Functions | |
def | __init__ |
def | Add |
def | AddCallback |
Public Attributes | |
buttons | |
callback |
def __init__ | ( | self | ) |
def Add | ( | self, | |
btn | |||
) |
Add a radio button to group.
def AddCallback | ( | self, | |
callback | |||
) |
Add a callback that will be call when a radiobutton in the group is clicked.