Kaydet (Commit) ad41bb1f authored tarafından Ali Rıza Keskin's avatar Ali Rıza Keskin

Göz kanatma sorunu giderildi.

üst 940cb5fd
......@@ -1048,12 +1048,12 @@ def colorize(msg, color):
else:
return str(msg)
def colorize_percent(msg,percent,color='backgroundgreen',color2='backgroundyellow'):
def colorize_percent(msg,percent,color='backgroundgreen',color2='backgroundyellow',color3='brightblue'):
if len(msg)<1:
return str(msg)
lmsg=int((len(msg)*percent)/100)+1
if lmsg>=len(msg):
lmsg=len(msg)
return str(ctx.const.colors[color3] + msg + ctx.const.colors['default'])
return str(ctx.const.colors[color]+ msg[:lmsg]+ctx.const.colors[color2]+msg[lmsg:]+ctx.const.colors['default'])
def config_changed(config_file):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment