Table Of Contents
See ToggleButtonBehavior for details.¶
Bases:
kivy.uix.behaviors.button.ButtonBehaviorThis mixin class provides
ToggleButtonbehavior. Please see thetogglebuttonmodule documentation for more information.New in version 1.8.0.
This specifies whether the widgets in a group allow no selection i.e. everything to be deselected.
New in version 1.9.0.
allow_no_selectionis aBooleanPropertyand defaults to True
Return a list of the widgets contained in a specific group. If the group doesn’t exist, an empty list will be returned.
Note
Always release the result of this method! Holding a reference to any of these widgets can prevent them from being garbage collected. If in doubt, do:
l = ToggleButtonBehavior.get_widgets('mygroup') # do your job del l
Warning
It’s possible that some widgets that you have previously deleted are still in the list. The garbage collector might need to release other objects before flushing them.
Group of the button. If None, no group will be used (the button will be independent). If specified,
groupmust be a hashable object, like a string. Only one button in a group can be in a ‘down’ state.groupis aObjectPropertyand defaults to None.