Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Add example for changing the debug output state. #260

Merged
merged 4 commits into from
Oct 4, 2023
Merged

Conversation

mattdm
Copy link
Contributor

@mattdm mattdm commented Sep 30, 2023

Created this as I struggled to understand it myself. Since someone came along with the same question I had, I figure an example might help others too.

I had a version where the button handling was more complicated, with one system to handle all button clicks. That version didn't require a second parameter for .add_button, but then ends up kind of complicated because the only distinguishing element is the text itself. Even with a simplified version from my initial try, I feel like it adds more complication that isn't really relevant to the example. If you want, though, I could take another look at that.

@aevyrie
Copy link
Owner

aevyrie commented Oct 4, 2023

Looks great, thanks!

@aevyrie aevyrie merged commit ac9ba6c into aevyrie:main Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants