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

Loading indicator #2018

Merged
merged 7 commits into from
Mar 11, 2023
Merged

Loading indicator #2018

merged 7 commits into from
Mar 11, 2023

Conversation

willmcgugan
Copy link
Collaborator

  • Added a LoadingIndicator widget
  • Added color.Gradient
Screen.Recording.2023-03-10.at.14.51.00.mov

Copy link
Contributor

@davep davep left a comment

Choose a reason for hiding this comment

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

Couple of observations at first glance.

"""

def on_mount(self) -> None:
self.start_time = time()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intended to be public? If so it would be a good idea to add a docstring.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll make it private.


def on_mount(self) -> None:
self.start_time = time()
self.auto_refresh = 1 / 16
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intended to be public? If so it would be a good idea to add a docstring.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a property in Widget. But it was missing a docstring.

src/textual/widgets/_loading_indicator.py Show resolved Hide resolved
@willmcgugan willmcgugan merged commit 1981901 into main Mar 11, 2023
@willmcgugan willmcgugan deleted the loading-indicator branch March 11, 2023 08:36
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.

2 participants