Index: pluginconf/gui.py ================================================================== --- pluginconf/gui.py +++ pluginconf/gui.py @@ -61,16 +61,14 @@ | opt_label | bool | Show config name= as label (instead of description) | | theme | str | Set PSG window theme. | | **kwargs | dict | Other options are passed on to PySimpleGUI | | **Returns** | True | if updated config{} values should be [Saved] | """ - plugins = kwargs.get("plugins", {}) - opt_label = kwargs.get("opt_label", False) - theme = kwargs.get("theme", "DefaultNoMoreNagging") + plugins = kwargs.pop("plugins", {}) + opt_label = kwargs.pop("opt_label", False) + theme = kwargs.pop("theme", "")# "DefaultNoMoreNagging" if theme: - if "theme" in kwargs: - del kwargs["theme"] sg.theme(theme) if files: plugins = read_options(files) layout = plugin_layout(plugins.values(), config, plugin_states, opt_label=opt_label) layout.append([sg.T(" ")])