bug修复

This commit is contained in:
EillesWan 2021-11-21 19:08:04 +08:00
parent 7e98c7bdb2
commit 1e6130fcd3
8 changed files with 17 additions and 14 deletions

View File

@ -226,6 +226,18 @@ def __main__():
if result:
SaveProject()
log("程序正常退出")
try:
global dataset
del dataset
except:
pass;
global root
root.destroy()
del root
if clearLog :
print("清除log此句不载入日志")
try:
@ -242,16 +254,6 @@ def __main__():
pass;
try:
global dataset
del dataset
except:
pass;
global root
root.destroy()
del root
exit()
@ -926,10 +928,11 @@ def __main__():
rys.World2Rys(outdir,begp,endp,isAir)
try:
with open(fileName,'w',encoding='utf-8') as f:
json.dump(rys,f)
json.dump(rys.RyStruct,f,sort_keys=True, indent=4, separators=(', ', ': '), ensure_ascii=False)
tkinter.messagebox.showinfo("成功✔",'文件已生成\n'+fileName)
except:
tkinter.messagebox.showerror("失败❌",'文件无法生成\n'+fileName)
tkinter.messagebox.showerror("失败❌",'文件无法生成\n'+fileName+'\n'+str(rys.RyStruct))
def world2BDX():

View File

@ -101,7 +101,7 @@ class version:
libraries = ('mido','amulet','amulet-core','amulet-nbt','piano_transcription_inference','pypinyin','briefcase','toga','pyinstaller','kivy','py7zr')
'''当前所需库,有一些是开发用的,用户不需要安装'''
version = ('0.0.4','Beta',)
version = ('0.0.4.1','Beta',)
'''当前版本'''
def __init__(self) -> None:

View File

@ -1 +1 @@
MANIFEST-000060
MANIFEST-000073

Binary file not shown.

0
测试用/test.RyStruct Normal file
View File