afishe2000,afishe2000 wrote: Here is the test code I modified from the pixmap example and an screenshot of the results:
Code: Select all
#!/bin/bash get_Pic() { echo foldger.jpg } export -f get_Pic export MAIN_DIALOG=" <vbox> <frame Static File Name> <text> <label>foldger.jpg</label> </text> </frame> <frame Static Picture> <pixmap> <input file>"folgers.jpg"</input> </pixmap> </frame> <frame Dynamic File Name> <text> <input>get_Pic</input> </text> </frame> <frame Dynamic Picture> <pixmap> <input file>get_Pic</input> </pixmap> </frame> <hbox> <button cancel></button> <button ok></button> </hbox> </vbox> " gtkdialog3 --program=MAIN_DIALOG
If your question is "why doesn't the Dynamic Picture work?"
Two reasons-
Code: Select all
get_Pic() {
echo foldger.jpg
}
2. This code -
Code: Select all
<frame Dynamic Picture>
<pixmap>
<input file>get_Pic</input>
</pixmap>
</frame>
Code: Select all
<input file>$(get_Pic)</input>
Regards,
s