Wednesday, 5 September 2012

Bouncing Ball 01

This script shows a basic structure for an animation in PyGtk. The following techniques are adopted:

  1. Object-oriented style for the moving object.
  2. Cairo for graphics.
  3. Timer trigger for animation.
  4. Mouse click detection on window.

Source Code


No comments:

Post a Comment