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

help update printc to install.py #23

Open
xoceunder opened this issue Jul 31, 2023 · 0 comments
Open

help update printc to install.py #23

xoceunder opened this issue Jul 31, 2023 · 0 comments

Comments

@xoceunder
Copy link

I'm trying to fix the problem you have if you add more text information

printc("Welcome to Python Examples Start installation? Y/N", col.WARNING)

def printc(rText, rColour=col.OKBLUE, rPadding=0, rLimit=47):
    print("%s ┌─────────────────────────────────────────────────� %s" % (rColour, col.ENDC))
    for i in range(rPadding): print("%s │                                                 │ %s" % (rColour, col.ENDC))
    array = [rText[i:i+rLimit] for i in range(0, len(rText), rLimit)]
    for i in array : print("%s │ %s%s%s │ %s" % (rColour, " "*round(23-(len(rText)/2)), i, " "*round(46-(22-(len(rText)/2))-len(rText)), col.ENDC))
    #print("%s │ %s%s%s │ %s" % (rColour, " "*round(23-(len(rText)/2)), rText, " "*round(46-(22-(len(rText)/2))-len(rText)), col.ENDC))
    for i in range(rPadding): print("%s │                                                 │ %s" % (rColour, col.ENDC))
    print("%s └─────────────────────────────────────────────────┘ %s" % (rColour, col.ENDC))
    print(" ")

Screenshot_28

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

1 participant