[Cuis-dev] The Preference model

Luciano Notarfrancesco luchiano at gmail.com
Thu Apr 28 19:45:59 PDT 2022


Hi Ken,
We don’t want to check a value is of the correct type before setting it, we
just want to specify the type so that a GUI tool for browsing and editing
preferences can build appropriate widgets for each preference (a drop down
list, a toggle button, etc). So the setter thing doesn’t make sense to me.

The dictionary as a class variable is a good idea to consider, tho, since
it avoids creating a special PreferrenceDictionary class.

Wish you a speedy recovery!

On Fri, 29 Apr 2022 at 2:24 AM ken.dickey--- via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> The simplified code -- just for completeness.
>
> Note: MyPref>>value:
>
> Cheers,
> -KenD
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220429/6ab31c9e/attachment.htm>


More information about the Cuis-dev mailing list