[Tutor] enter key
Diana Hawksworth
dianahawks at optusnet.com.au
Tue Apr 5 08:53:34 CEST 2005
I am using the tkinter toolkit. Just wish to have the button I have formed
replaced by the Enter key - if possible. Would the raw_input() work, as
Bernard has suggested, or do I need another piece of code that refers to the
Enter key?
Thanks. Diana
----- Original Message -----
From: "Kent Johnson" <kent37 at tds.net>
Cc: <tutor at python.org>
Sent: Tuesday, April 05, 2005 7:20 AM
Subject: Re: [Tutor] using the enter key
> Diana Hawksworth wrote:
> > At the moment I have some user input tied to a button that allows the
> > input to be "submitted" and then an answer is supplied. How can I get
> > rid of this submit button, and have the user just press the "enter" key
> > and have the same result happen?
>
> How is the user interface built? Are you using a GUI toolkit like Tkinter
or wxPython or is it a web
> form?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20050405/5794503f/attachment.html
More information about the Tutor
mailing list