Re: problems with keyboard events in pygtk



On Thu, Jun 11, 2009 at 11:15 AM, Jamie Boisture<jamieboisture gmail com> wrote:
> Hello all,
>
>     I am running pygtk in ubuntu 9.04.  I am having a problem with keyboard
> events because whenever a key is held down it emits pressed released pressed
> released until the key is actually released.  I want it to release only one
> released signal.  I am trying to monitor the state of the keyboard and when
> it is pressed it is appended to a list and when it is realeased it is
> removed.  However, with these fake released signals it removes it from the
> list when it shouldn't.  From asking around on irc I gather that it should
> not actually behave this way, but I have gotten the same results on three
> computers I have tried, all runnning ubuntu 9.04.  I would really appriciate
> any help on this matter.

http://www2.tcl.tk/20299

notice that GDK/GTK is already attempting to take care of this for
you. see also this email thread:

http://www.mail-archive.com/ubuntu-mobile lists ubuntu com/msg00516.html


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