534
edits
| Line 476: | Line 476: | ||
=== getElementCatConfig(elementcat) === | === getElementCatConfig(elementcat) === | ||
Returns the configuration of all elements of an elementcat category.<br /> | |||
Retrieving the configuration of the 'displays' elements :<br /> | |||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | Python 3.4.2 (default, Oct 19 2014, 13:31:11) | ||
| Line 482: | Line 484: | ||
>>> from FGInterface import FGInterface as FGINT | >>> from FGInterface import FGInterface as FGINT | ||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | >>> FGINT1 = FGINT('radiopanel.cfg', 0) | ||
>>> FGINT1.getElementCatConfig('displays') | |||
{'CONF': {'library': 'FGIntSegDisplay', 'confname': 'DISPLAYS', 'module': 'SegDisplay', 'createmethod': 'createDisplays', 'properylist': 'device,dispname,nbdigit,port,com1,decdigit'}, 'PROPERTIES': {'prop02': 'name', 'prop04': 'port', 'prop06': 'decdigit', 'prop05': 'com1', 'prop01': 'device', 'prop03': 'nbdigit'}, 'ACTVFREQ': {'decdigit': '3', 'com1': '1', 'nbdigit': '6', 'port': 'A', 'device': 'LEDPACK1', 'name': 'ACTVFREQ'}, 'STBYFREQ': {'decdigit': '3', 'com1': '1', 'nbdigit': '6', 'port': 'B', 'device': 'LEDPACK1', 'name': 'STBYFREQ'}} | |||
>>> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits