I like the design where the return value is the content of the option button.
However, it can sometimes be a little inconvenient.For example, when doing internationalisation.
Could you please change the display text from opinion to f(opinion), where f is a global function defaults to lambda x:x to ensure backward compatibility. and users could change it into something like {"yes":"ok","no":"nope"}.get for easy internationalisation or diversity of styles.
I like the design where the return value is the content of the option button. However, it can sometimes be a little inconvenient.For example, when doing internationalisation.
Could you please change the display text from
opinion
tof(opinion)
, where f is a global function defaults tolambda x:x
to ensure backward compatibility. and users could change it into something like{"yes":"ok","no":"nope"}.get
for easy internationalisation or diversity of styles.