in reply to Tk::Entry acting on <enter>
You can add a key-binding to the entry like so:
Inside of that anonymous sub can be any code you want, including another sub call or a Tk event generation, etc.$entry->bind( '<Return>', sub { 'whatever code you want here' } );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Tk::Entry acting on <enter>
by gri6507 (Deacon) on May 16, 2005 at 18:53 UTC |
In Section
Seekers of Perl Wisdom