Skip to content
Discussion options

You must be logged in to vote

Something like this does the trick (note the styling of both the ProgressBar and the Bar that is within it):

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()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by fgallaire
Comment options

You must be logged in to vote
2 replies
@davep
Comment options

@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants