Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tk::Entry acting on <enter>

by kelan (Deacon)
on May 16, 2005 at 13:01 UTC ( #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? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-08-13 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?