The only way I know to update an entry without actually click on something in the gui is to include a progressbar. At the time the progressbar reach 100% it runs the <actions> defined. This works just fine, but it uses more cpu-power than we want. If there exist a better approach, both Pburn and Pmusic would benefit of it.
Code: Select all
#!/bin/sh
export box="
<vbox>
<progressbar>
<input>"'while [ A != B ]; do sleep 0.5; P=`cat /tmp/p`; echo $P; echo 100 > /tmp/p; done'"</input>
<action>refresh:ENTRY</action>
<action>echo 99 > /tmp/p</action>
</progressbar>
<entry>
<variable>ENTRY</variable>
<input>date +%H:%M:%S</input>
</entry>
</vbox>"
gtkdialog3 -p box