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

'Event' object has no attribute 'button' #1

Open
CrsiX opened this issue Apr 3, 2019 · 0 comments
Open

'Event' object has no attribute 'button' #1

CrsiX opened this issue Apr 3, 2019 · 0 comments

Comments

@CrsiX
Copy link

CrsiX commented Apr 3, 2019

I downloaded and started visgraph_simulator as mentioned in the README file.

After some experimenting with the UI and drawing some obstacles, I entered the S mode. I set the start point and then tried to move around with the end points by holding down the right mouse key. The "game" crashed almost instantly.
I retried this procedure with only two obstacles and by clicking instead of holding down the mouse. Same consequence.

Traceback:

pygame 1.9.5
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "visgraph_simulator/visgraph_simulator.py", line 237, in <module>
    game_loop()
  File "visgraph_simulator/visgraph_simulator.py", line 193, in game_loop
    if pygame.mouse.get_pressed()[LEFT-1] or event.button == LEFT:
AttributeError: 'Event' object has no attribute 'button'
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

1 participant