[Tkinter-discuss] how to hit enter and get the Entry() text

Bob Greschke bob at passcal.nmt.edu
Tue Jun 10 17:17:21 CEST 2008


And  <KP_Enter>  for it to respond to the keypad Enter/Return key.


On Jun 10, 2008, at 07:21, Guilherme Polo wrote:

> On Tue, Jun 10, 2008 at 1:59 AM, Alexnb <alexnbryan at gmail.com> wrote:
>>
>> Okay, so I am new to Tkinter, and can't figure out how to get the  
>> text out of
>> my Entry() text box. I know I can make a button or something like  
>> that where
>> they click it and I get it. But what I want to do is have the user  
>> typing in
>> the box, and then they hit "return" or "enter" and that also gets  
>> it for
>> example:
>>
>
> You have to bind <Return> to your entry widget.



More information about the Tkinter-discuss mailing list