Code: Select all
<!-- comments -->
in the mean time
Code: Select all
#!/usr/sbin/gtkdialog -e
function print_this() {
echo "print: $1"
}
COMMENT=" "
export MAIN_DIALOG='
<vbox>
<button>
<label>function</label>
<action>print_this button</action>
</button>
'${COMMENT:- this is a comment}'
<button>
<label>Exit</label>
</button>
</vbox>
'
Note that the COMMENT variable is initialized to " " (a space ... or a tab), the single quote immediately before the $ and after the } and the ":-" following COMMENT (this is necessary)
also for _some_ tags you can just add
comment="your comment here"
ex:
Code: Select all
<button comment="this button is useless">