How to make rich.Table.grid
size rigid?
#1372
-
Hi I am trying to create a time-tracking python CLI app. I got inspired by timewarrior to do something like this: I tried to implement it with Also for multiple tasks in same hour I think Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Try this... from rich.table import Table
from rich import print
t = Table.grid(expand=True)
t.add_column(ratio=1, no_wrap=True)
t.add_column(ratio=1, no_wrap=True)
t.add_row("foo " * 20, "bar " * 20)
print(t) This should create equal size columns that don't wrap. |
Beta Was this translation helpful? Give feedback.
Try this...
This should create equal size columns that don't wrap.