1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] why am i getting tuple attribute errors when running my method? [closed]

Discussão em 'Python' iniciado por Stack, Setembro 13, 2025.

  1. Stack

    Stack Membro Participativo

    I keep getting tuple error with this code and cannot seem to see why. even if I just print it errors.

    def physics_rects_around(self,pos):
    rects = []
    for tile in self.tiles_around(pos):
    if tile['type'] in PHYSICS_TILES:
    rects.append(pygame.Rect(tile['pos'][0] * self.tilesize,tile['pos'][1] * self.tilesize,self.tilesize,self.tilesize))

    return rects


    I cannot seem to see the issue.

    Continue reading...

Compartilhe esta Página