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

Re: [pygame] Rect() not imported



2008/12/14 Michael <zathras@xxxxxxxxxxxxx>:
> On Sunday 14 December 2008 18:02:18 Gonzalo Castro wrote:
>> Yes, I already know that. That's why I think is strange this code
>> works, because I import pygame with "import pygame" and I can use
>> Rect() function instead of pygame.Rect() and it works!
>
> No, you have Rect() available because you do this:
>
> from pygame.locals import *
>
ammm, I thougt I imported Rect() with import pygame
> Michael.
> --

Lots of thanks
> http://yeoldeclue.com/blog
> http://www.kamaelia.org/Home
>