http://qs321.pair.com?node_id=457437


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.