Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jigglepiggle opened this issue May 7, 2022 · 2 comments
Open

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

jigglepiggle opened this issue May 7, 2022 · 2 comments

Comments

@jigglepiggle
Copy link

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
Copy link

Lohorunk commented Jul 2, 2022

This works for me

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

@chomikFajny
Copy link

print(Colorate.Horizontal(Colors.red_to_purple, Center.XCenter(f"Your text or {varible}") , 1))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants