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

How to: Do something busy in the background and show a LoadingIndicator #2613

Closed
davep opened this issue May 19, 2023 · 5 comments
Closed

How to: Do something busy in the background and show a LoadingIndicator #2613

davep opened this issue May 19, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation Task

Comments

@davep
Copy link
Contributor

davep commented May 19, 2023

With this Discord thread in mind, and as something that's come up more than once over the past few months, and given we've got some really nice tools in place now to easily tackle the problem: a How To that explains how to do something busy in the background and show a loading indicator while it does it would be a good idea.

@davep davep added documentation Improvements or additions to documentation Task labels May 19, 2023
@TomJGooding
Copy link
Contributor

...given we've got some really nice tools in place now to easily tackle the problem

Even easier now with the new Widget.loading reactive, so perhaps this task can be closed (also #2954)?

@willmcgugan
Copy link
Collaborator

Yeah, good call.

@github-actions
Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

@davep
Copy link
Contributor Author

davep commented Oct 12, 2023

I do still think it's a reasonable thing for us to have in the howto; the howto documents aren't really intended to explain how to do something Textual doesn't easily support, they're more like longer-form FishAQs that give a good basic grounding in how to take the tools Textual provides (in this case a loading indicator and a worker to do busy things) and make a very workable thing with them.

I sense it would still be a good thing to howto.

@TomJGooding
Copy link
Contributor

Sorry Dave, what do you think a 'how to' could add that isn't already explained in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Task
Projects
None yet
Development

No branches or pull requests

3 participants