文本字段中的文本值在 gtkdialog 中不刷新
Text value in text field not refreshing in gtkdialog
<hbox>
<button>
<input file>bbc_150x150.jpeg</input>
<variable>bbc</variable>
<action>txt0=$(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml -u feeds.bbci.co.uk/news/system/latest_published_content/rss.xml -1 -n 1)</action>
<action>echo $txt0</action>
<action>refresh:txt0</action>
</button>
</hbox>
<hbox>
<button>
<input file>bbcbusiness_150x150.jpeg</input>
<action>unset txt0</action>
<action>txt0=$(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml -1 -n 1)</action>
<action>echo $txt0</action>
<action>refresh:txt0</action>
</button>
</hbox>
<vbox scrollable="true" width="600" height="300">
<text wrap="false" xalign="0">
<variable>txt0</variable>
<label>This is a static text.</label>
<input file>txt0</input>
</text>
</vbox>
我正在将 rsstail 的输出分配给一个名为 txt0 的变量,然后我试图将新闻变量中存在的 rsstail 输出值打印到文本字段上,但是当我同时单击两个按钮 rsstail 时,我的文本字段没有刷新输出没有变化。两个按钮都一样。
啊哈将 rsstail 输出回显到文本文件中解决了这个问题。喜欢 :
<hbox>
<button>
<input file>bbc_150x150.jpeg</input>
<variable>bbc</variable>
<action>echo $(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml -u feeds.bbci.co.uk/news/system/latest_published_content/rss.xml -1 -n 3) > txt0.txt</action>
<action>echo $txt0.txt</action>
<action>refresh:txt0</action>
</button>
</hbox>
<hbox>
<button>
<input file>bbcbusiness_150x150.jpeg</input>
<action>rm txt0.txt</action>
<action>echo $(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml -1 -n 3)>txt0.txt</action>
<action>echo $txt0.txt</action>
<action>refresh:txt0</action>
</button>
</hbox>
<vbox scrollable="true" width="600" height="300">
<text wrap="false" xalign="0">
<variable>txt0</variable>
<label>This is a static text.</label>
<input file>txt0.txt</input>
</text>
</vbox>
<hbox>
<button>
<input file>bbc_150x150.jpeg</input>
<variable>bbc</variable>
<action>txt0=$(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml -u feeds.bbci.co.uk/news/system/latest_published_content/rss.xml -1 -n 1)</action>
<action>echo $txt0</action>
<action>refresh:txt0</action>
</button>
</hbox>
<hbox>
<button>
<input file>bbcbusiness_150x150.jpeg</input>
<action>unset txt0</action>
<action>txt0=$(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml -1 -n 1)</action>
<action>echo $txt0</action>
<action>refresh:txt0</action>
</button>
</hbox>
<vbox scrollable="true" width="600" height="300">
<text wrap="false" xalign="0">
<variable>txt0</variable>
<label>This is a static text.</label>
<input file>txt0</input>
</text>
</vbox>
我正在将 rsstail 的输出分配给一个名为 txt0 的变量,然后我试图将新闻变量中存在的 rsstail 输出值打印到文本字段上,但是当我同时单击两个按钮 rsstail 时,我的文本字段没有刷新输出没有变化。两个按钮都一样。
啊哈将 rsstail 输出回显到文本文件中解决了这个问题。喜欢 :
<hbox>
<button>
<input file>bbc_150x150.jpeg</input>
<variable>bbc</variable>
<action>echo $(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml -u feeds.bbci.co.uk/news/system/latest_published_content/rss.xml -1 -n 3) > txt0.txt</action>
<action>echo $txt0.txt</action>
<action>refresh:txt0</action>
</button>
</hbox>
<hbox>
<button>
<input file>bbcbusiness_150x150.jpeg</input>
<action>rm txt0.txt</action>
<action>echo $(eval rsstail -u newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml -1 -n 3)>txt0.txt</action>
<action>echo $txt0.txt</action>
<action>refresh:txt0</action>
</button>
</hbox>
<vbox scrollable="true" width="600" height="300">
<text wrap="false" xalign="0">
<variable>txt0</variable>
<label>This is a static text.</label>
<input file>txt0.txt</input>
</text>
</vbox>