Bars๏
The Bar can be used to draw a horizontal bar with an optional title, which is a good way of dividing your terminal output in to sections.
Added on v2023.3
- Parameters
messageOptional[(str)] โ Message print on the terminal.alignOptional[(str)] - Postion of the message to be printed. Default iscenterother options areleftandright.fgOptional[(str)] - Foreground color to be applied.bgOptional[(str)] - Background color to be applied.
from quo.bar import Bar
bar = Bar("I am a bar")
bar.draw()
from quo.bar import Bar
bar = Bar("I am a styled bar")
bar.draw(fg="blue", bg="yellow")
from quo.bar import Bar
bar = Bar("I am right aligned")
bar.draw(align="right")