Skip to content

Conversation

@ttafsir
Copy link
Contributor

@ttafsir ttafsir commented Apr 15, 2021

ATTENTION: before clicking "Create Pull Request" please submit some meta data, thanks!

Difficulty level (1-10): [3]
Estimated time spent (hours): [1/4]
Completed (yes/no): [yes]
I stretched my coding skills (if yes what did you learn?): [it was fun]
Other feedback (what can we improve?): []

Copy link
Collaborator

@bbelderbos bbelderbos left a comment

Choose a reason for hiding this comment

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

NIce

self.run(prompt)


timer_duration = int(input("Duration: ").strip())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Put this into an if __name__ == "__main__" so it doesn't run if you would want to import this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, good point. will do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@@ -0,0 +1,39 @@
from rich.console import Console
Copy link
Collaborator

Choose a reason for hiding this comment

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

rich?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've been playing with rich lately and it seems super cool and useful for CLI outputs and layouts.

Copy link
Collaborator

Choose a reason for hiding this comment

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

cool, need to check that out, maybe we can do an article on the blog ...

@bbelderbos bbelderbos merged commit 9786701 into pybites:community Apr 15, 2021
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