rail shafigulin wrote:
i'm trying to learn OOP, python and pygame at the same time. so far it has
been ok, but i stumbled onto a problem
Hugo has already pointed out that you mispelled __init__, and that in
Python 3 you don't need to explicitly provide arguments to super().
class BaseSprite
On Tue, Oct 11, 2011 at 10:56 AM, Hugo Arts wrote:
> On Tue, Oct 11, 2011 at 4:20 PM, rail shafigulin
> wrote:
> > i'm trying to learn OOP, python and pygame at the same time. so far it
> has
> > been ok, but i stumbled onto a problem
> >
> > here is the code that causes problems
> >
> > #!/usr/
On Tue, Oct 11, 2011 at 4:20 PM, rail shafigulin
wrote:
> i'm trying to learn OOP, python and pygame at the same time. so far it has
> been ok, but i stumbled onto a problem
>
> here is the code that causes problems
>
> #!/usr/bin/python3.1
> import pygame
> pygame.init()
>
> class BaseSprite(pyga
i'm trying to learn OOP, python and pygame at the same time. so far it has
been ok, but i stumbled onto a problem
here is the code that causes problems
#!/usr/bin/python3.1
import pygame
pygame.init()
class BaseSprite(pygame.sprite.Sprite):
def __init(self, imagefile):
super(type(self), se