There are probily better ways to do this. The pil library has a rectangle drawing feature, I would check through the docs of wxwindows and tkinter unless this is homework because the pil people will not let you distribute pils. I am going to be looking for the same think let me know if you get a better answer.
http://my.opera.com/yjfuk/blog/index.dml/tag/captcha https://sourceforge.net/project/showfiles.php?group_id=156455 http://www.dexrow.com [EMAIL PROTECTED] wrote: > Dear all, > I am looking for a data structure to hold rectangles in a 2d space. > Please point me to any module which does these operations: > Insert a rectangle into a particular co-ordinate. > Get the rectangle/s right/left/above/below side to a particular > rectangle. > Get all the rectangles within a box > Delete a particular rectangle. > > -- > thanks. > Suresh -- http://mail.python.org/mailman/listinfo/python-list