-
Notifications
You must be signed in to change notification settings - Fork 815
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
Add a Unicode digits display widget #2916
Comments
I'm thinking that this should accept a We should also consider extending it with a few more characters. I'm thinking "+", "-", and ".". Maybe even "X" for mathematical notation. |
Longer-term, this could then feed into Textualize/frogmouth#46 |
Hello, EuroPython sprinter here, I'd like to take this one! =) |
Fantastic. Looking forward to this one. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
(This issue is reserved for the EuroPython 2023 sprint. If you are not participating in the sprint, please refrain from working on this issue. Thanks!)
This issue concerns itself with adding a new widget to Textual.
This widget should use Unicode box-drawing characters to create a display for digits.
Each digit should be drawn like shown below.
Digits
The widget should have a reactive attribute
value
that holds the integer value associated with the display.To implement the actual display, you'll want to implement the method
render
.See
_progress_bar.py
or_placeholder.py
for two examples of widgets that implement the methodrender
.Take a look at #2333 to see what files need to be changed when you implement a new widget.
Then, don't be like me and also do the final step shown in #2399 to add your new widget to the widget gallery.
Good luck and have fun!
The text was updated successfully, but these errors were encountered: