Module pluginconf.gui

PySimpleGUI window to populate config dict via plugin options

Functions

def option_entry(o, config)
def plugin_entry(e, plugin_states)
def plugin_layout(ls, config, plugin_states, opt_label=False)
def read_options(files)
def window(config={}, plugin_states={}, files=['*/*.py'], plugins={}, opt_label=False, theme='DefaultNoMoreNagging', **kwargs)

Reads *.py files and crafts a settings dialog from meta data.

Parameters

config : dict
Config settings, updated after dialog completion
plugin_states : dict
Plugin activation states, also input/output
files : list
Glob list of *.py files to extract meta definitions from
plugins : dict
Alternatively to files=[] list, a preparsed list of pluginmeta+config dicts can be injected
opt_label : bool
Show config name= as label
**kwargs : dict
Other options are passed on to PySimpleGUI
def wrap(s, w=50)

Classes

class cast

Static methods

def bool(v)
def fromtype(v, opt)
def int(v)