I have just started trying my hand with gtkdialog
Could someone please give me some advice please?
My script has a function called WatchNow but it is not being called from the button action. I have tried the function as a stand alone and it works fine, I have also tried substituting other functions from scripts that I know are working but with the same result, the function is not being called.
It is probably some thing very simple but is driving me mad. HELP!!!!
Code is below, thanks for looking
Gary
Code: Select all
#!/bin/bash
function WatchNow()
{
mplayer dvb://Dave
}
Test
MAIN_DIALOG='
<window title="pDVB">
<vbox>
<frame Select Player >
<vbox>
<hbox>
<text>
<label>Player:</label>
</text>
<combobox>
<variable>PLAYER</variable>
<item>Mplayer</item>
<item>Gxine</item>
</combobox>
</hbox>
</vbox>
<vbox>
<table>
<width>150</width><height>200</height>
<variable>TABLE</variable>
<label>Channels:</label>
<item>First item </item>
<item>Second item</item>
<item>Third item </item>
<action>echo $TABLE</action>
</table>
<hbox>
<button>
<label>Watch</label>
<action>Test</action>
</button>
</hbox>
</vbox>
</frame>
<hbox>
<button>
<action>exit:EXIT</action>
</button>
</hbox>
</vbox>
</window>
' gtkdialog3 --program=MAIN_DIALOG