name for a mutually inclusive relationship

Ethan Furman ethan at stoneleaf.us
Wed Feb 24 16:05:05 EST 2021


On 2/24/21 12:40 PM, Alan Gauld via Python-list wrote:
> On 24/02/2021 16:12, Ethan Furman wrote:
>> I'm looking for a name for a group of options that, when one is specified, all of them must be specified.
>>
>> For contrast,
>>
>> - radio buttons: a group of options where only one can be specified (mutually exclusive)
>> - check boxes:   a group of options that are independent of each other (any number of
>>                    them may be specified)
>>
>> - ???: a group of options where, if one is specified, all must be specified (mutually
>>          inclusive)
> 
> Given that radio buttons and check boxes are all effectively
> using boolean states, doesn't this mean none of the group
> or all of the group?
> 
> In which case it's a single boolean value - a check box that
> controls all options.
> 
> I suspect I'm missing something...
> 

radio buttons (none or one):

    t-shirt size:  Small  Medium  Large


check boxes (none or one or several or all):

    sandwich toppings:  lettuce  tomato  onion  cheese


entangled (none or all):

    image size override:  height   width

--
~Ethan~


More information about the Python-list mailing list