浅浅更新一下

This commit is contained in:
EillesWan 2022-06-11 13:53:59 +08:00
parent 1fde8ca253
commit 1980aeb8de
12 changed files with 63 additions and 24 deletions

Binary file not shown.

View File

@ -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):

View File

@ -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
```

View File

@ -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 installationdouble 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
```

View File

@ -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"
"喵喵喵~ 种花家~"
)
}

View File

@ -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:

View File

@ -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
View 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
View File

@ -0,0 +1,4 @@
from msctLib.buildIN import author_reader
input(author_reader())

View File

@ -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/")