add "Print" button to print code to terminal window
This commit is contained in:
parent
182d35ec17
commit
2d0cc4d156
1 changed files with 18 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
<textbox>
|
<textbox>
|
||||||
<halign>fill</halign>
|
<halign>fill</halign>
|
||||||
<pref-height>120</pref-height>
|
<pref-height>120</pref-height>
|
||||||
<pref-width>400</pref-width>
|
<pref-width>450</pref-width>
|
||||||
<slider>20</slider>
|
<slider>20</slider>
|
||||||
<editable>true</editable>
|
<editable>true</editable>
|
||||||
<property>/sim/gui/dialogs/nasal-console/code</property>
|
<property>/sim/gui/dialogs/nasal-console/code</property>
|
||||||
|
@ -51,6 +51,23 @@
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
<legend>Print</legend>
|
||||||
|
<equal>true</equal>
|
||||||
|
<binding>
|
||||||
|
<command>dialog-apply</command>
|
||||||
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>
|
||||||
|
line = "--------------------------------------------------";
|
||||||
|
print(line);
|
||||||
|
print(getprop("/sim/gui/dialogs/nasal-console/code"));
|
||||||
|
print(line);
|
||||||
|
</script>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<legend>Execute</legend>
|
<legend>Execute</legend>
|
||||||
<default>true</default>
|
<default>true</default>
|
||||||
|
|
Loading…
Reference in a new issue