mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-13 10:57:43 +08:00
新增语言支持
This commit is contained in:
parent
954a30f722
commit
0818957f51
@ -36,11 +36,15 @@ LANGUAGELIST = {
|
|||||||
|
|
||||||
# 对于旧版本音·创的语言支持
|
# 对于旧版本音·创的语言支持
|
||||||
# 重构之后将停止使用
|
# 重构之后将停止使用
|
||||||
from languages.zhCN import READABLETEXT
|
try:
|
||||||
|
from languages.zhCN import READABLETEXT
|
||||||
|
except:
|
||||||
from msctLib.log import log
|
pass
|
||||||
|
|
||||||
|
try:
|
||||||
|
from msctLib.log import log
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if not DEFAULTLANGUAGE == 'zh-CN':
|
if not DEFAULTLANGUAGE == 'zh-CN':
|
||||||
@ -96,6 +100,35 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
root.geometry('900x600')
|
root.geometry('900x600')
|
||||||
|
|
||||||
|
Orignrame = tk.Frame(root)
|
||||||
|
Translaterame = tk.Frame(root)
|
||||||
|
|
||||||
|
|
||||||
|
Orignscrollbar = tk.Scrollbar(Orignrame)
|
||||||
|
Origntextbar = tk.Text(Orignrame)
|
||||||
|
|
||||||
|
|
||||||
|
Translatetextbar = tk.Text(Translaterame)
|
||||||
|
Translatescrollbar = tk.Scrollbar(Translaterame)
|
||||||
|
|
||||||
|
Origntextbar.pack(side='left', fill='y')
|
||||||
|
Orignscrollbar.pack(side='left', fill='y')
|
||||||
|
|
||||||
|
Translatescrollbar.pack(side='right', fill='y')
|
||||||
|
Translatetextbar.pack(side='right', fill='y')
|
||||||
|
|
||||||
|
Orignscrollbar.config(command=Origntextbar.yview)
|
||||||
|
Origntextbar.config(yscrollcommand=Orignscrollbar.set)
|
||||||
|
|
||||||
|
|
||||||
|
Translatescrollbar.config(command=Translatetextbar.yview)
|
||||||
|
Translatetextbar.config(yscrollcommand=Translatescrollbar.set)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Origntextbar.insert('end', 'TEST')
|
||||||
|
|
||||||
|
tk.mainloop( )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user