aroberge / easygui_qt

Inspired by easygui, designed for PyQt
BSD 3-Clause "New" or "Revised" License
59 stars 18 forks source link

Save settings in local file #4

Closed aroberge closed 9 years ago

aroberge commented 9 years ago

Currently, settings (language and font) are saved in a global object that remains available during a session; however, they have to be reinitialized every time the program is run. Furthermore, this require some added complication to the with_app decorator, as explained in a comment on Issue#3.

A nice enhancement would be so save/retrieve such configuration values in a local file - probably using pickle since the font selection is a QFont object. Doing this would likely allow to simplify the with_app decorator substantially.