Full width ProgressBar
#6126
-
How to display a full width ProgressBar ? Best regards |
Beta Was this translation helpful? Give feedback.
Answered by
davep
Sep 19, 2025
Replies: 2 comments 2 replies
-
Something like this does the trick (note the styling of both the from textual.app import App, ComposeResult
from textual.widgets import ProgressBar
class WideBarApp(App[None]):
CSS = """
ProgressBar, ProgressBar Bar {
width: 1fr;
}
"""
def compose(self) -> ComposeResult:
yield ProgressBar()
if __name__ == "__main__":
WideBarApp().run() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fgallaire
-
Thank you so much, it's exactly what I was looking for. Maybe this tip could be in the documentation ! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like this does the trick (note the styling of both the
ProgressBar
and theBar
that is within it):