Hi, again...
The NEXT chapter of hours of study and experimenting and getting nowhere... Heck.
I have a checkbox... and it's bound to the variable, CB_STATE. A label is bound to a different variable. LABEL_TEXT.
As the state of the checkbox is toggled, I want the text in LABEL_TEXT to change, which I'm also trying to reflect in the label widget's text... but it's not doing anything (although I can detect the change of state, but the "changed" signal doesn't seem to be issued/recognized).
I've tried using "signals", I've tried examining truth values, I've tried different ways of specifying the variables associated with each widget... I'm not sure if "refresh" and "update" need to be called on something... but nothing seems to be working as I'd expect.
Again, I'd appreciate any suggestions on the following code... as the 'manual' and 'examples' are all just a blur now, as I've been buried in them far too long...
Once more, it's Fossapup64 9.5... and gtkdialog v0.8.4.
Thanks a heap.
Code: Select all
#!/bin/bash
LABEL_TEXT="{Start}"
export GUI="
<window resizable=\"true\"">
<vbox>
<checkbox space-expand=\"true\" space-fill=\"true\" xalign=\"0\">
<label>/mnt/sdb1</label>
<default>true</default>
<variable>CB_STATE</variable>
<action>if true echo checkbox is TRUE</action>
<action>if true CB_STATE=\"TRUE\"</action>
<action>if false echo checkbox is FALSE</action>
<action>if false CB_STATE=\"FALSE\"</action>
<action>echo CB_STATE=$CB_STATE</action>
<action>echo LABEL_TEXT=$LABEL_TEXT</action>
</checkbox>
<text>
<label>$LABEL_TEXT</label>
<variable>LABEL_TEXT</variable>
</text>
</vbox>
</window>
"
gtkdialog3 --program=GUI --center
exit 0