Open xoceunder opened 1 year ago
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(" ")
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)