.

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
simargl

.

#1 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 16:07, edited 3 times in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#2 Post by SFR »

Sure it's possible, check this out:

Code: Select all

echo '<entry><variable>VAR</variable><action signal="activate">echo $VAR</action></entry>' | gtkdialog -s
http://code.google.com/p/gtkdialog/wiki/entry wrote:The "activate" signal is emitted when the user activates the entry with the Enter key (since 0.7.21).
Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

simargl

#3 Post by simargl »

.
Last edited by simargl on Sun 01 Sep 2013, 14:59, edited 1 time in total.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#4 Post by seaside »

SFR wrote:Sure it's possible, check this out:

Code: Select all

echo '<entry><variable>VAR</variable><action signal="activate">echo $VAR</action></entry>' | gtkdialog -s
http://code.google.com/p/gtkdialog/wiki/entry wrote:The "activate" signal is emitted when the user activates the entry with the Enter key (since 0.7.21).
Greetings!
SFR.

Thanks for that tip.

It's very useful because in the past, I remember having to use a "activates-default="true" to refer to another button which then had a "can-default="true" has-default="true" sequence just to get to an action for pressing "enter".

Regards,
s

Post Reply