534
edits
| Line 436: | Line 436: | ||
=== createElementCat(elementcat) === | === createElementCat(elementcat) === | ||
Creates, stores in the interface and returns the objects of the category.<br /> | |||
Creating "displays" catégprie :<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 442: | Line 444: | ||
>>> from FGInterface import FGInterface as FGINT | >>> from FGInterface import FGInterface as FGINT | ||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | >>> FGINT1 = FGINT('radiopanel.cfg', 0) | ||
>>> FGINT1.createElementCat('displays') | |||
{'ACTVFREQ': <FGIntSegDisplay.SegDisplay object at 0x768ff170>, 'STBYFREQ': <FGIntSegDisplay.SegDisplay object at 0x768ff910>} | |||
>>> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits