An OnOffButtonBox

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:


Screenshot_2023-02-28_17-11-12 Screenshot_2023-02-28_17-11-44 !

As usual comments, gripes or abuse, on a postcard please!

Regards,
Rolf

Latest versions:
onoffbuttonbox.py (29.8 KB)
onoffbutton.py (38.5 KB)