Re: Entry and keyboard



On Sat, Aug 25, 2001 at 04:32:35PM -0400, Arno wrote : 
> I have a gtk_entry and if I click on the button send it sends the text. I 
> would like that one supports on enter makes the same thing. Somebody could 
> help me? 

Connect a handler to the 'key_press_event'; this handler gets
passed an event object whose property keyval gives you the
pressed key. You can use this to call whatever your 'send'
function is.

- Markus




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]