Skip to content

Conversation

@HSMarieK
Copy link
Collaborator

Added code to "line.py" where the pygame_quit event is registered. This should allow the user to end the simulation early by clicking the X button on the visualisation window.

@HSMarieK HSMarieK requested a review from windisch November 28, 2025 11:55
@HSMarieK HSMarieK self-assigned this Nov 28, 2025
@HSMarieK HSMarieK added the visualization New feature or request label Nov 28, 2025
for event in pygame.event.get():
if event.type == pygame.QUIT:
break
teardown_draw()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should that be self.teardown_draw()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that should be self.teardown_draw()

@HSMarieK HSMarieK requested a review from windisch November 29, 2025 14:44
Copy link
Contributor

@windisch windisch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great - thanks!

@windisch windisch merged commit eae1c43 into main Nov 29, 2025
9 checks passed
@windisch windisch linked an issue Dec 1, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

visualization New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop simulation using pygame

3 participants