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

Added todo example #111

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Added todo example #111

wants to merge 2 commits into from

Conversation

edfloreshz
Copy link

I added a simple todo example, this is still in draft because I haven't figured out how to modify the database in the on_key event.

I could use some guidance here. 🙏🏼

Closes #57

@ecton
Copy link
Member

ecton commented Dec 24, 2023

Sorry for the delay in getting back to you! Thank for taking a stab at this. I had previously started one a long time ago, then I removed it before releasing v0.1 because I never finished it. That being said, however, it does have the basic "Add a task" flow hooked up through a default button.

Why was it never finished? At the time I started it, I didn't have enough widgets to make it work the way I wanted. That inspired me to do some other work, but I just never got around to taking the example across the finish line.

To get back to you original question: In short, the data structure for the todos should be some sort of collection stored inside of a Dynamic. This can then be synchronized with a Children widget. This API is not ideal and is probably one of the ugliest parts of Gooey's design right now.

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

Successfully merging this pull request may close these issues.

Create the stereotypical "todo" example
2 participants