how to change ProgressBar height?
the default ProgressBar height link a line
how to change it to link this
Thank you for your issue. Give us a little time to review it.
PS. You might want to check the FAQ if you haven't done so already.
This is an automated reply, generated by FAQtory
change the
half_bar_right = "╸"
half_bar_left = "╺"
bar = "━"
in .venv\Lib\site-packages\textual\renderables\bar.py
@python-and-fiction, thanks for the tip!
It would be neat if those were a configurable attribute of Bar in the constructor. Opens up lots of fun options:
half_bar_right = "| "
half_bar_left = " |"
bar = "|"
https://github.com/user-attachments/assets/c9a256c5-6fe6-4c9e-be84-6a41d6eb8ca7
Per the original request, a thick progress bar:
half_bar_right = " "
half_bar_left = " "
bar = "█"
@python-and-fiction thanks for the your tip it work
Closing as completed by #5963, which recently added ProgressBar.BAR_RENDERABLE to allow customising the bar.
I hope I solved your issue!
Consider sponsoring my work to continue to maintain and develop Textual.
- Will McGugan