Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Tk::Entry acting on <enter>

by kelan (Deacon)
on May 16, 2005 at 13:01 UTC ( [id://457437]=note: print w/replies, xml ) Need Help??


in reply to Tk::Entry acting on <enter>

You can add a key-binding to the entry like so:

$entry->bind( '<Return>', sub { 'whatever code you want here' } );
Inside of that anonymous sub can be any code you want, including another sub call or a Tk event generation, etc.

Replies are listed 'Best First'.
Re^2: Tk::Entry acting on <enter>
by gri6507 (Deacon) on May 16, 2005 at 18:53 UTC
    of course. thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://457437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found