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

bug: mac unexpected type 'float' #3

Open
Jackiexiao opened this issue Feb 23, 2024 · 1 comment
Open

bug: mac unexpected type 'float' #3

Jackiexiao opened this issue Feb 23, 2024 · 1 comment

Comments

@Jackiexiao
Copy link

python pet-mac.py
Traceback (most recent call last):
  File "/Users/jackiexiao/Downloads/temp/DesktopPet/pet-mac.py", line 687, in <module>
    pet = App()
          ^^^^^
  File "/Users/jackiexiao/Downloads/temp/DesktopPet/pet-mac.py", line 154, in __init__
    self.timer.start(gamespeed)
TypeError: arguments did not match any overloaded call:
  start(self, msec: int): argument 1 has unexpected type 'float'
  start(self): too many arguments

强行改为 self.timer.start(1) 后,新报错是

./data/cat1/stand1.png
Traceback (most recent call last):
  File "/Users/jackiexiao/Downloads/temp/DesktopPet/pet-mac.py", line 230, in game
    self.move(petleft,pettop)
TypeError: arguments did not match any overloaded call:
  move(self, a0: QPoint): argument 1 has unexpected type 'float'
  move(self, ax: int, ay: int): argument 1 has unexpected type 'float'
[1]    82911 abort      python pet-mac.py
@WolfChen1996
Copy link
Owner

Fixed.

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