更新文档及其翻译……,另外对无法批量转换带进度条的bug做了更正……现在批量可以用进度条了

This commit is contained in:
2022-10-05 23:59:06 +08:00
parent 77b7344277
commit c32b94592a
4 changed files with 175 additions and 81 deletions

View File

@ -22,8 +22,8 @@ while True:
authorname = input('请输入作者:')
while True:
isProgress = input('*进度条[注]')
if isProgress != '' :
if isProgress in ('1','True'):
if isProgress != '':
if isProgress in ('1', 'True'):
isProgress = True
elif isProgress in ('0', 'False'):
isProgress = False
@ -49,7 +49,9 @@ while True:
print('输入错误,请重新输入')
def operation(i,):
def operation(
i,
):
print(f'正在操作{i}')
convertion.convert(midipath + '/' + i, outpath)
convertion.toBDXfile_withDelay(
@ -65,9 +67,10 @@ def operation(i,):
if os.path.isdir(midipath):
import threading
for i in os.listdir(midipath):
if i.lower().endswith('.mid'):
threading.Thread(target=operation,args=(i,)).start()
threading.Thread(target=operation, args=(i,)).start()
else:
convertion.convert(midipath, outpath)
convertion.toBDXfile_withDelay(