billythegoat356 / pystyle

The source of my Python library, pystyle.
https://pypi.org/project/pystyle/
Eclipse Public License 2.0
202 stars 13 forks source link

Using Center.XCenter and Colors Doesn't Work #11

Open jigglepiggle opened 2 years ago

jigglepiggle commented 2 years ago

Hello,

I have been coding with pystyle for the past day and have found that using the center and colors functions of the module do not work together

This is the snippet of code

print(Center.XCenter(Colorate.Horizontal(Colors.red_to_purple, "\n\n" + head, 1)))

head is the banner i am trying to print

Lohorunk commented 2 years ago

This works for me

print(Colorate.Horizontal(Colors.red_to_purple, Center.XCenter("\n\n") + head, 1))
chomikFajny commented 1 year ago
print(Colorate.Horizontal(Colors.red_to_purple, Center.XCenter(f"Your text or {varible}") , 1))