Given that the OnOffButton code escaped into the wild and acts like a radiobutton or a checkbox, it seemed churlish not to offer an OnOffButtonBox.
A custom class ButtonBox used to select one of a number of mutually exclusive choices.
This uses onoffbutton widgets
Allows for Left/Right key navigation
Permits inclusion of a ContextHelp button
Requires installation of onoffbutton.py Version 1.16.1 and above
onoffbuttonbox.py (25.9 KB)
Requires OnOffButton: onoffbutton.py (33.3 KB)
Standalone demonstrations:
obb.py (2.8 KB) obb2.py (2.3 KB)
Images:
!
As usual comments, gripes or abuse, on a postcard please!
Regards,
Rolf