fsleyes-props
fsleyes-props is a library which allows you to:
Listen for change to attributes on a python object,
Automatically generate
wxpythonwidgets which are bound to attributes of a python objectAutomatically generate a command line interface to set values of the attributes of a python object.
To do this, you just need to subclass the HasProperties class,
and add some PropertyBase types as class attributes.
The fsleyes-props package uses python descriptors
to implement an event programming framework. It also includes the ability for
automatic CLI generation and, optionally, automatic GUI generation (if
wxPython is present).
The more important parts of this documentation are as follows:
The
fsleyes_propspackage, for a quick overview.The
properties_typesmodule for details of available property types.The
buildmodule for details on GUI specification and generation.The
climodule for details on CLI specification and generation.The
widgetsmodule for creating widgets linked to properties.The
bindableandsyncablemodules for details on binding properties between instances, and building hierarchical relationships between instances.The
propertiesandproperties_valuemodules for details on howfsleyes-propsworks.