You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the code launches, but as soon as I click with the mouse, it tells me :
File "c:\code\Python\Game_of_Life\src\main.py", line 38, in edit_automanton
if pygame.mouse.get_pressed(0):
ValueError: Number of buttons needs to be 3 or 5.
From what I found online, seems to be related to number of button in pygame ? I don’t really understand… I have all dependencies and everything is up-to-date. And the only thing I customized in the code is assets paths.
The text was updated successfully, but these errors were encountered:
Hi d0ob, your pygame version is probably higher than 1.9.6. I ran the installation of the newest version 2.0.1 and managed to reproduce your problem. I just uploaded the fix which also works for pygame == 2.0.1.
Amazing ! Works like a charm =3
Oh I see, didn’t think about that, the problem was kindof opposite so, «up-too-much-date» ^^
Evolution of Python’s «infrastructure» is something I’ll have in mind now.
To familiarize with Python I’ve looked online multiple people’s version of the game of life, regardless of the package, the rendering, etc… Yours is incredible ! Still mostly wizardry for me ^^ But I’m deconstructing it and customizing what I can, I love it !
Thank you so much for the sharing ! And also for the super quick answer and fix !
Hello there !
Here the code launches, but as soon as I click with the mouse, it tells me :
File "c:\code\Python\Game_of_Life\src\main.py", line 38, in edit_automanton
if pygame.mouse.get_pressed(0):
ValueError: Number of buttons needs to be 3 or 5.
From what I found online, seems to be related to number of button in pygame ? I don’t really understand…
I have all dependencies and everything is up-to-date. And the only thing I customized in the code is assets paths.
The text was updated successfully, but these errors were encountered: