[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: incorrect rect behavior... (was : [pygame] strange rect behavior...)



On Fri, 2005-10-14 at 10:52 -0700, Patrick Mullen wrote:
> I thought that setting left and right will move the rect and not
> change the size?  In that case the above behavior is correct.  When
> you set rect.right to 50 it moved the rectangle left so the right edge
> was at 50.  So the size is still 100 and the left edge is now at -50
> so that the size is the same.

This is exactly how they work.