Re: updating labels when a key is stroked

2013-08-09 Thread Bernhard Schuster
Keep asking, sometimes the response delay is actually a good thing :) A side note: depending on what version of gtk you are using, signals may change (i.e. gtk2 "expose_event", gtk3 "draw") so keep an eye open when following tutorials. Best Bernhard On Fri, Aug 9, 2013 at 12:14 PM, Eric Waj

Re: updating labels when a key is stroked

2013-08-09 Thread Eric Wajnberg
Ok, thanks! I'm just plain stupid. I indeed just have to collect a "key_press_event" event and that's it! Sorry for disturbing the list with such a basic question (I am still learning how to use gtk).. Cheers to all, Eric. Kang Hu wrote, On 09/08/2013 09:39, all you need is an event filt

updating labels when a key is stroked

2013-08-08 Thread Eric Wajnberg
Hi there, I need to develop a gtk code in which a label is changed each time a key is stroked on the keyboad. I thus use g_timeout_add() to launch on a regular basis a function that listens to key strokes. Within this function, I used a combination of kbhit()/getch() to collected the stroken