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

[pygame] Philosophical Question On Naming



A trivial question that's bugging me:

A Widget object currently has a variable called "location," which is a Pygame.Rect object. It _is_ a Rect, but what it _means_ is the Widget's location. Is it better to call it "self.location" or "self.rect"?

Even typing "import this" at the IDLE console gives no clear insight.

Kris