On Sat, 2020-07-11 at 14:19 -0700, Irv Kalb wrote: > is this implemented with a property of a rect object, so it's actually calling > a method with a property decorator? This would seem to be the case because I > am changing just one value (left), but other values also change along with it > - not only the right, but .center, etc.
You've got the right idea, but this appears to actually be implemented in C. There is a getter/setter for each attribute. The only attributes actually being stored are x, y, width, height, everything else is being converted. https://github.com/pygame/pygame/blob/master/src_c/rect.c#L1990
signature.asc
Description: This is a digitally signed message part