Update panel_tools.py
This commit is contained in:
parent
3fa51efd16
commit
18e59c9538
|
|
@ -44,7 +44,6 @@ def mw_input_cmd(msg):
|
|||
def getRemainLen(cmd, max_length=100):
|
||||
cmd_len = len(cmd)
|
||||
cmd_u8_len = len(cmd.encode('utf-8'))
|
||||
# print(cmd, cmd_u8_len, cmd_len, int((cmd_u8_len - cmd_len)/2+cmd_len))
|
||||
return max_length-int((cmd_u8_len - cmd_len)/2+cmd_len)
|
||||
|
||||
def mwcli(mw_input=0):
|
||||
|
|
|
|||
Loading…
Reference in New Issue