robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
458 stars 115 forks source link

feature request: Ability to make display content and options different. #183

Open 17183248569 opened 3 years ago

17183248569 commented 3 years ago

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.