mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
浅浅更新一下
This commit is contained in:
parent
1fde8ca253
commit
1980aeb8de
Binary file not shown.
Binary file not shown.
@ -47,6 +47,8 @@ __ver__ = f'{version.version[1]} {version.version[0]}'
|
||||
__author__ = '金羿Eilles'
|
||||
|
||||
|
||||
|
||||
|
||||
class MainWindow(wx.Frame):
|
||||
"""We simply derive a new class of Frame."""
|
||||
def __init__(self, *args, **kargs):
|
||||
|
@ -61,10 +61,10 @@
|
||||
1. 安装Python 3.8.10
|
||||
[下载64位Python安装包](https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe)
|
||||
[下载32位Python安装包](https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe)
|
||||
2. 以管理员身份运行 补全库.py :
|
||||
2. 以管理员身份运行 作者的自我修养.py :
|
||||
- 点击 “开始” 菜单,搜索 `命令提示符`
|
||||
- 右键点击 `命令提示符` 左键点击 “以管理员身份运行”
|
||||
- 将 “补全库.py” 拖拽入开启的窗口,按下回车
|
||||
- 将 “作者的自我修养.py” 拖拽入开启的窗口,按下回车
|
||||
3. 等待安装完成后,双击运行 Musicreater.py
|
||||
|
||||
#### Linux
|
||||
@ -81,7 +81,7 @@ sudo apt-get install git
|
||||
```bash
|
||||
sudo git clone https://gitee.com/EillesWan/Musicreater.git
|
||||
cd Musicreater
|
||||
python3 补全库.py
|
||||
python3 作者的自我修养.py
|
||||
python3 Musicreater.py
|
||||
```
|
||||
|
||||
|
@ -66,7 +66,7 @@ Tips: You'd better choose the \"2 GitHub\" download source
|
||||
2. After completing installation, we need to install the libraries :
|
||||
- Open "Start Menu" and find `cmd`
|
||||
- Run `cmd` as Administrator
|
||||
- Drag "补全库.py" into the opened window and press Enter
|
||||
- Drag "作者的自我修养.py" into the opened window and press Enter
|
||||
3. After completing installation,double click Musicreater.py to run
|
||||
|
||||
#### Linux
|
||||
@ -83,7 +83,7 @@ sudo apt-get install git
|
||||
```bash
|
||||
sudo git clone https://gitee.com/EillesWan/Musicreater.git
|
||||
cd Musicreater
|
||||
python3 补全库.py
|
||||
python3 作者的自我修养.py
|
||||
python3 Musicreater.py
|
||||
```
|
||||
|
||||
|
@ -30,17 +30,17 @@ LANGUAGELIST = {
|
||||
),
|
||||
'zh-TW': (
|
||||
"繁体中文 中国台湾省",
|
||||
"Traditional Chinese - Taiwan, China",
|
||||
"Traditional Chinese - Taiwan Province, China",
|
||||
"正體中文,中国台灣省",
|
||||
),
|
||||
# 'zh-HK': (
|
||||
# "繁体中文 香港",
|
||||
# "Traditional Chinese - the Hong Kong Special Administrative Region",
|
||||
# "Traditional Chinese - Hong Kong SAR",
|
||||
# "繁體中文,香港特別行政區",
|
||||
# ),
|
||||
# 'zh-MO': (
|
||||
# "繁体中文 澳门",
|
||||
# "Traditional Chinese - the Macao Special Administrative Region",
|
||||
# "Traditional Chinese - Macau SAR",
|
||||
# "繁體中文,澳門特別行政區",
|
||||
# ),
|
||||
'en-GB': (
|
||||
@ -50,8 +50,8 @@ LANGUAGELIST = {
|
||||
),
|
||||
'zh-ME' : (
|
||||
"喵喵文 中国大陆",
|
||||
"Meow Catsese - China Mainland"
|
||||
"喵喵喵~ 祖国喵~"
|
||||
"Meow Catsnese - China Mainland"
|
||||
"喵喵喵~ 种花家~"
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,37 @@
|
||||
# -*- coding: UTF-8 -*-
|
||||
"""音·创的核心内置组件功能集合"""
|
||||
|
||||
def author_reader(path:str = './resources/msctDevAuthors.txt'):
|
||||
'''读入作者数据,格式需要按照署名文件中的指定格式,详见/resources/msctDevAuthors.txt
|
||||
:param path: 作者署名文件所在路径
|
||||
:return 指定的作者格式
|
||||
{
|
||||
'作者常用名':{
|
||||
'语言码' : '对应语言的名字',
|
||||
},
|
||||
}'''
|
||||
allAuthors = open(path,'r',encoding='utf-8').readlines()
|
||||
result = {}
|
||||
indexName = ''
|
||||
for line in allAuthors:
|
||||
line = line.replace('\n', '')
|
||||
if (not line.startswith('#')) and line:
|
||||
if line.startswith('启'):
|
||||
if indexName:
|
||||
result[indexName] = authorList
|
||||
indexName = line[line.index('启')+1:]
|
||||
authorList = {}
|
||||
continue
|
||||
line_c = ''
|
||||
for char in line:
|
||||
if not char == '#':
|
||||
line_c += char
|
||||
else:
|
||||
break
|
||||
authorList[line_c.split(' ', 1)[0]] = line_c.split(' ', 1)[1]
|
||||
result[indexName] = authorList
|
||||
return result
|
||||
|
||||
|
||||
|
||||
class version:
|
||||
@ -10,7 +41,7 @@ class version:
|
||||
)
|
||||
"""当前所需库"""
|
||||
|
||||
version = ('0.3.0', 'Delta',)
|
||||
version = ('0.3.0', '丁',)
|
||||
"""当前版本"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
|
@ -1,9 +1,10 @@
|
||||
# 注意,这里是作者署名文件,文件格式开头为常用名
|
||||
# 紧跟其后是各个语言下的名字。用 井字符 开头表示
|
||||
# 注意,这里是作者署名文件,文件格式开头为单子启
|
||||
# 紧跟其后,不加空格留下常用名,常用名即常用网名
|
||||
# 而在其后是各个语言下的名字。用 井字符 开头表示
|
||||
# 注释,请注意,注释符号必须在一行之首否则无作用
|
||||
# 每进行一次分段表示一个新的开发者,换行表示一个
|
||||
# 新的语言。请全体开发者就此署名,谢谢!
|
||||
金羿
|
||||
启金羿
|
||||
zh-CN 金羿
|
||||
zh-TW 金羿
|
||||
zh-ME 金羿羿喵
|
||||
@ -11,7 +12,7 @@ zh-HK 金 羿
|
||||
en-GB Eilles Wan
|
||||
en-US EillesWan
|
||||
|
||||
诸葛亮与八卦阵
|
||||
启诸葛亮与八卦阵
|
||||
zh-CN 诸葛亮与八卦阵
|
||||
zh-TW 諸葛亮與八卦陣
|
||||
# zh-ME 你自己翻译昂===========
|
||||
@ -19,7 +20,7 @@ zh-HK 諸葛亮與八卦陣
|
||||
# en-GB 同上==================
|
||||
# en-US 同上==================
|
||||
|
||||
鸣凤鸽子
|
||||
启鸣凤鸽子
|
||||
zh-CN 鸣凤鸽子
|
||||
zh-TW 鳴鳳鴿子
|
||||
zh-HK 鳴鳳 鴿子
|
||||
|
8
作者的自我修养.py
Normal file
8
作者的自我修养.py
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
from os import system
|
||||
from sys import platform
|
||||
|
||||
if platform == "linux":
|
||||
system("python3 -m pip install -r ./requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
||||
elif platform == "win32":
|
||||
system("pip install -r ./requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
4
作者的自我装逼.py
Normal file
4
作者的自我装逼.py
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
from msctLib.buildIN import author_reader
|
||||
|
||||
input(author_reader())
|
7
补全库.py
7
补全库.py
@ -1,7 +0,0 @@
|
||||
|
||||
from os import system
|
||||
|
||||
if platform == "linux":
|
||||
system("python3 -m pip install -r ./Musicreater/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
||||
elif platform == "win32":
|
||||
system("pip install -r ./Musicreater/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/")
|
Loading…
Reference in New Issue
Block a user