Skip to content

Customize progress bar with arbitrary bar text #5350

@ktmeaton

Description

@ktmeaton

In reading through #5272, @python-and-fiction pointed out you can customize the progress bar further by editing the source of renderables/bar.py. I wonder if there would be any interest in making some of these variables class attributes so the user can customize them? Apologies if this is already possible/documented some where, I'm still digging into the ProgressBar docs.

image

# Thick
half_bar_right = " " 
half_bar_left = " "
bar = "█"

393036245-68a41537-d4e8-42ee-aedd-0f99e17f1c15

# Battery-like
half_bar_right = " " 
half_bar_left = " "
bar = "|"

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions