[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Re: API addition question - Rect attributes x,y,w,h



> I would like to see x,y,w,h added to the Rect class.  They would be 
> modifiable variables where
> 
> x does the same as left
> y does the same as top
> w as width
> h as height
> 
> I'd be willing to make the patch for this, if this change is acceptable.
> 
> I want this feature, because I am so used to the original SDL structures, 
> porting code from C to pygame would be much easier, and r.x is easier to type 
> than r.left :)

this sounds good to me. i'll add it in for the next release.



____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org