Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: integer argument expected, got float #2

Open
Labham-Jain opened this issue Mar 24, 2020 · 1 comment
Open

TypeError: integer argument expected, got float #2

Labham-Jain opened this issue Mar 24, 2020 · 1 comment

Comments

@Labham-Jain
Copy link

$ 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

@CreepyGeek
Copy link

me to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants