By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

motion-notify with DrawingArea response problem.

P: n/a
I am using Pygtk and have a DrawingArea and use the motion-notify-event to do some stuff. The code is intended for Linux and Windows and works as intended.
However, if I move the mouse a lot over the DrawingArea when running Linux the event callbacks block....I am presuming too many events in too short a time. The application freezes while events catch up. This happens before anything reaches my code.
On the same PC running Windows XP this does not occur and there is no freezing of the application which then appears to work much better using MS than Linux.
The problem in Linux seems to occur at a low level and I can not do anything in my code to make things operate nicely. Is this a limitation or is there something else I can do to improve the situation?

any pointers or info would be helpful

nick
Oct 13 '10 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 624
This would have to do with how often the "notify" signal is sent/received which is OS specific and distro specific on Linux. I don't think that gtk has any way to modify this. Finally, you would hope that this problem doesn't happen for everyone who uses motion-notify-event on Linux, so there may be some tweaking that can eliminate the problem.
Oct 13 '10 #2

P: 2
..replying myself!!

found there is a "motion-notify-hint-event" which intends to avoid this issue...

I have not been able to test it yet though
Dec 24 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.