1
0
Fork 0

add "Print" button to print code to terminal window

This commit is contained in:
mfranz 2006-02-15 12:15:37 +00:00
parent 182d35ec17
commit 2d0cc4d156

View file

@ -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>