Skip to content

TypeError: integer argument expected, got float #2

@Labham-Jain

Description

@Labham-Jain

$ python Chess.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "Chess.py", line 4, in
from ChessPieces import *
File "C:\Users\Labham Jain\CODE\Python\atom - PYPro\Shatranj-master\ChessPieces.py", line 241, in
Pawn('MEDIA\WhitePawn.png', squareCenters[48], 'White'),
File "C:\Users\Labham Jain\CODE\Python\atom - PYPro\Shatranj-master\ChessPieces.py", line 33, in init
ChessPiece.init(self, image, position, team)
File "C:\Users\Labham Jain\CODE\Python\atom - PYPro\Shatranj-master\ChessPieces.py", line 11, in init
self.image = pygame.transform.scale(self.image, (BoardWidth / 8 - BoardWidth / 21, BoardWidth / 8 - BoardWidth / 21))
TypeError: integer argument expected, got float

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions