FGInterface Class: Difference between revisions

Jump to navigation Jump to search
Line 450: Line 450:


=== createElement(elementcat, element) ===
=== createElement(elementcat, element) ===
Creates, stores in the interface and returns the element '' element '' of the category '' elementcat ''.<br />
To create the "ACTVFREQ" display from displays category :<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 456: Line 458:
>>> from FGInterface import FGInterface as FGINT
>>> from FGInterface import FGInterface as FGINT
>>> FGINT1 = FGINT('radiopanel.cfg', 0)
>>> FGINT1 = FGINT('radiopanel.cfg', 0)
 
>>> FGINT1.createElement('displays', 'ACTVFREQ')
<FGIntSegDisplay.SegDisplay object at 0x768ff4d0>
>>>
</syntaxhighlight>
</syntaxhighlight>


534

edits

Navigation menu