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

multiple object tracking

P: 2
I need to draw red balls that bounce from left to right and a ball which rotates (always the same uniform mouvement, a little circle in the middle). the illusion is that all the balls are bouncing, but it is not true.

The problem is that I don't know how to made a python program who shows that.
Apr 26 '10 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 2.5K+
P: 2,851
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

Then when you are ready post a new question in this thread.

Apr 26 '10 #2

P: 2
I know, thank you, i don't want people doing my program. I just want to know how to do the bouncing from left to right
Apr 26 '10 #3

Expert Mod 2.5K+
P: 2,851
I know some about Tkinter. You would start with a Tkinter.Canvas widget and create an oval object on the canvas. You can simulate movement by deleting the oval object and creating a new one in a slightly different position repeatedly at short time intervals. I have found the documentation here to be useful.
Apr 26 '10 #4

Expert 100+
P: 391
You could also use something like matplotlib to create the image files (from a graph) and then stitch them together. Or to run Gnuplot and repeatedly replot.
Apr 27 '10 #5

Post your reply

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