[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Philosophical Question On Naming
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Philosophical Question On Naming
- From: "Charles Christie" <sonicbhoc@xxxxxxxxx>
- Date: Tue, 24 Apr 2007 10:03:53 -0400
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 24 Apr 2007 10:04:07 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=D0va4EeL3HqtF97qzbKFTwD4F0l7C/nxHWSZmjTrDGChkZtc0DlsngnnP5nD0W+l/U841xcQ068LStOP4dqu8J5aVaQdzaNi8ACTMaGepa/MISHxyea8pboVV0zW3H5U2jPYtSqYHhxTgyF1ZIJ/EJaYEU0flrkgki6s1S99mZM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MW92kvQEXKEOY4y/cPauYXhzobWj7tIP30QNsmEQPrKZjkN+jT5Y6M5aboE9sYvpIJ+7gYamBkTBj+Vmz87sXGICud/j9ESie12sx5bBFFWqt/IJlk0Oa6wEafCU2iNt+rgTkU12+sXKin3gK+boK8q4tyLw34Ei4otUmf2SNFw=
- In-reply-to: <462E0112.4030408@speakeasy.net>
- References: <462D0C88.7090906@xepher.net> <7e3eab2c0704231303rad6c5b4wdf3e1a7d0259d02d@mail.gmail.com> <462E0112.4030408@speakeasy.net>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
self.rect is already used by the pygame.sprite.Sprite class.
On 4/24/07, Samuel Mankins <waterflight@xxxxxxxxxxxxx
> wrote:I agree with Jason. Also, self.rect is the predefined value for where
the widget is, I believe.
--Skizzaltix
Jason Massey wrote:
> Don't you think that the "explicit is better than implicit" in import
> this gives you some help?
>
> I'd stick with the
self.location
>
>
>
> On 4/23/07, * Kris Schnee* <kschnee@xxxxxxxxxx
> <mailto:kschnee@xxxxxxxxxx>> wrote:
>
> 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
>
>