Progress Bar Text above Bar #2830
Unanswered
rlaphoenix
asked this question in
Q&A
Replies: 2 comments 2 replies
-
table = Table.grid()
# ...
def thread_worker(table):
table.add_row("Thread...")
progress = Progress()
table.add_row(progress) This idea worked for my needs, however, they don't have their columns in the same length and position as each other. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I’m afraid I don’t know what you are trying to achieve. A minimal working example would help. Or even a diagram. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have already found a way by making a Table.grid() and placing the text as one row, and the bar as the other. However, I need each
task
to be in this layout. If I do it this way all I'm actually doing is moving all texts into one group, and the bars into another.I need:
[task1 text]
[task1 bar]
[task2 text]
[task2 bar]
not the following which can be done with a Table.grid and .add_row():
[task1 text]
[task2 text]
[task1 bar]
[task2 bar]
The reason I need this is because often the progress description value will be wildly too long and will fill up most terminals. Therefore I will need the bar moved to the next line for it to be usable.
Beta Was this translation helpful? Give feedback.
All reactions