gtkdialog again (sorry) – How to use variables inside gtkdialog?
Johnny Rosenberg
gurus.knugum at gmail.com
Mon Apr 22 19:55:35 UTC 2013
I just can't figure it out. I saw an example (I think) but now I can't find it:
Let's say that I have three combo boxes in a dialogue:
blah blah
<comboboxentry>
blah blah
<variable>y</variable>
blah blah
</comboboxentry>
<comboboxentry>
blah blah
<variable>x</variable>
blah blah
</comboboxentry>
<comboboxentry>
blah blah
<variable>z</variable>
blah blah
</comboboxentry>
Then I have an editable text box:
<edit>
blah blah
<variable>Text</variable>
blah blah
</edit>
And finally an add button:
<button label="Add">
blah blah
</button>
blah blah
What I want to do is to select some combo box entries and click the
add button. A new line should then be added to the editable text box,
for instance (expressed in bash syntax):
Text="${Text}\n${x}: ${y} – ${z}"
I have tried the most obvious things, but nothing made me happy so far…
I figured out how to copy the text (if I enter it manually directly to
the box) to a file using the <output file> tag, but not how to get the
text INTO the box without typing it manually…
Sorry for bothering so much the last few days.
Johnny Rosenberg
More information about the ubuntu-users
mailing list