Forms for BEST parameters files setup and management.
Set the objects in the AoIParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Update the “cfg” object setting the values from the AoIParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Set of parameters representing the Area of Interest (AoI).
Set the objects in the AoIParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Update the “cfg” object setting the values from the AoIParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Abstract base class for sets of parameters.
Derived classes should at least implement (and overwrite) the following methods: set_default, clear, set_from_cfg, update_cfg.
The ParamSet classes implementations should never make no assumption about the “widget” attribute but that it is a widget. If it is needed to reference some widget component for methods implemetation it is strongly suggested to bind that widget to a (pivate) attribute.
A ParamSet has at least the following attributes:
name – the ParamSet name label – a label for the PatamSet widget – the widget that encloses the ParamSet GUI
The “widget” attribute is used for packing the ParamSet into into the application GUI.
Set the objects in the ParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Update the “cfg” object setting the values from the ParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Base class for ParamSet decoration.
This class and its derivates are designed to provide decorations (title, scroll-bars and so on) to ParamSet classes. It is thought to be used as MixIn class together with a ParamSet class and it expects that some attribures/methods like self.label, self.clear and self.set_default are defined. The user shoult inherit from both a ParamSet and one ParamSetContainer and use the addContainer method in the inizializer.
Decoration for base sub-set of parameters.
This class is designed to provide decorations to ParamSet classes. The decoration is a frame with a bold title. BaseSubSet is thought to be used as MixIn class together with a ParamSet class and it expects that some attribures/methods like self.label, self.clear and self.set_default are defined. The user shoult inherit from both a ParamSet and one ParamSetContainer and use the addContainer method in the inizializer.
ParamSet defined from configuration file.
The format of the configuration file must be readable using the ConfigParser module.
Set the objects in the AoIParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Update the “cfg” object setting the values from the AoIParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Decoration for main parameters sets.
This class is designed to provide decorations to ParamSet classes. The decoration is a frame with a centered title in bold large characters and scrollbars. MainSet is thought to be used as MixIn class together with a ParamSet class and it expects that some attribures/methods like self.label, self.clear and self.set_default are defined. The user shoult inherit from both a ParamSet and one ParamSetContainer and use the addContainer method in the inizializer.
Decoration for optional sub-set of parameters.
This class is designed to provide decorations to ParamSet classes. The decoration is a frame with a bold title enclosed in an expander: the entire subset can be disanled by clicking on the expander arrow. OptSubSet is thought to be used as MixIn class together with a ParamSet class and it expects that some attribures/methods like self.label, self.clear and self.set_default are defined. The user shoult inherit from both a ParamSet and one ParamSetContainer and use the addContainer method in the inizializer.
Set the objects in the ParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Update the “cfg” object setting the values from the ParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Standard set of parameters.
StdParamSet implements the BaseParamSet interface. The “params” arrtibute is used to store the parameters. All parameters objects in “params” must be instances of BaseParam or BaseParamSet. The instatioation of parameter objects and packing into the container “widget” is left to the user.
Set the objects in the ParamSet getting the values from “cfg”.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
‘strict’ ‘warn’ ‘ignore’
Update the “cfg” object setting the values from the ParamSet.
“cfg” must be a “ConfigParser” object (from the python standard library) and the section parameter is used to specify the configuration file section. If “section” is None then the “label” attribute is used as section specifierqualifier.
Decoration for sub-set of parameters.
This class is designed to provide decorations to ParamSet classes. The decoration is a frame with a bold title and a checkbutton that allows to disble the sub-set. SubSet is thought to be used as MixIn class together with a ParamSet class and it expects that some attribures/methods like self.label, self.clear and self.set_default are defined. The user shoult inherit from both a ParamSet and one ParamSetContainer and use the addContainer method in the inizializer.
Return a new ParamSet class with decorations.
Both the type of the ParamSet and decoration type are passed as parameters. If the “decoration_type” is None then the “paramset_type” is returned.
Example:
>>> newParamSet = decorated_paramset(StdParamSet, MainSet)