in reply to Re: Question on Tk Entry
in thread Question on Tk Entry
$top->bind( 'Tk::Entry', '<Enter>', \&your_subroutine );
I suppose if you wanted the subroutine to be triggered on every keystroke, so you could see each key as it's typed, you could try:
$top->bind( 'Tk::Entry', '<KeyRelease>', [\&subroutine, Ev('K')] );
In this case, the subroutine gets the keystroke value as the second argument (first arg is the reference to the entry widget that got the event).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Question on Tk Entry
by Popcorn Dave (Abbot) on Apr 22, 2002 at 04:35 UTC |