Re: Help with Event Handlers
Magnus Lie Hetland <[email protected]> Fri, 7 Mar 2003 09:25:02 +0100
| Newsgroups | gmane.comp.python.anygui.general |
|---|---|
| Message-ID | <[email protected]> |
gombo bayartsogt <[email protected]>: > > Hail Everyone Hi, there. Please use plain text (and not HTML) when posting to email lists such as this... That makes it easier for those of us with text-only email programs. > I am a student in Yorktown High School, I am currently working on a > program title PyJotto, it is a python version of the game Jotto. I > am using anyGui for the GUI, I have encountered a problem - I wish > to link the <return> / <enter> button to a handler function, yet I > do not know how to link it, with the link(source, event, handler) > type situation, because I could not find adequate notes or tutorials > on the types of events (i.e. 'click' or 'select'). Any help with > this would be appreciated. In a TextField you can use the 'enterkey' event. As this is the default for TextField, you could also simply use link(textfield, handler) Hope that helps :) -- Magnus Lie Hetland "Nothing shocks me. I'm a scientist." http://hetland.org -- Indiana Jones ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com