473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

motion-notify with DrawingArea response problem.

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
2 1953
dwblas
626 Expert 512MB
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
..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

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

Similar topics

2
by: User10 | last post by:
Can some one provide an algorithm for motion detection between two jpeg frames? Or can you provide a more appropriate group to post this on? Thanks!
0
by: sekhar_ps | last post by:
can any one tell me how to decode motion vectors at the time of decoding,can any one please provide code for that or provide algotithm,and how would represent motion information for each macroblock?
1
by: Cylix | last post by:
Should we discuss about the motion of a layer move, I think it is a common technique on many sites. The technique seems using setTimeout and increment the postion value of the layer. Should we...
7
by: libsfan01 | last post by:
hi guys is there an extension for scriptaculous (or another library) that allows you to create more organic/natural looking movement? for example when an image slides across the screen, it...
1
by: elribatejano | last post by:
Hi everyone, i'm new at java language. But i've to built a software in java to my final project that can detect motion in live video with ip cameras. Now my questions are, what can i do to...
4
by: gomzi | last post by:
hi, I have a marquee on my page.but it aint moving smoothly. any suggestions to have a fluid like motion? if it aint possible using a marquee, then are there any other alternatives? thx, gomzi.
2
by: eljainc | last post by:
Hello, I'm looking for some examples of utilities or .NET programming libraries that will allow me to detection motion in a video sequence. I would rather have results that will take AVI files...
1
by: dampflames | last post by:
I put tag binds on the image inside a function, but even though I haven't called it, the tags are initiated when I start the program, and then it won't work again. I'm not quite sure why it is like...
1
by: valy | last post by:
hi guys, do y'all have any idea about writing a function to calculate the amount of white pixels on a difference image, and if the white amount is >= the threshold value then the image is count as...
1
joedeene
by: joedeene | last post by:
Hello all, I am using Macromedia Flash Professional 8 in this example of a simple way to use motion tweens. Ok here goes... Directions: A. Preparation 1.) Start the Flash program. Once...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.