[Anygui-devel] Re: [Anygui-users] Help with Event Handlers
Brought to you by:
mlh
From: Magnus L. H. <ma...@he...> - 2003-03-07 08:25:07
|
gombo bayartsogt <go...@ho...>: > > 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 |