思想确认,具体请看群内,正在进一步修改UI,以及插件效果。

This commit is contained in:
2022-02-07 18:51:51 +08:00
parent aa210ac678
commit 320114533d
7 changed files with 87 additions and 9 deletions

View File

@ -25,7 +25,7 @@ functions.py中会调取./addon/目录下的全部功能文件,这些功能文
例如:
```python
{
'version': '0.0.1' # version指的是
'version': '0.0.1', # version指的是当前配置格式的版本
'title': "音·创",
'geometry': '1200x900',
'iconbitmap': ('./resources/musicreater.ico', './resources/musicreater.ico'),
@ -35,7 +35,51 @@ functions.py中会调取./addon/目录下的全部功能文件,这些功能文
'打开': lambda : x,
},
},
'widget': { #对窗口部件又详细说明
'wordview':{
'text':'言·论',
'bg':'black',
'fg':'white'
},
'settingbox':{}, #后文详细说明
'tracklist':{},
'operation':{},
'map':{},
},
}
```
- 函数
1. `setMenu`对菜单的基础设定
```python
{
菜单名 : {
选项名 : 选项函数
}
}
```
注:
`菜单名` : `str` 显示在菜单上的字符串
`选项名` : `str` 显示在菜单选项上的字符串
`选项函数` : `function` 菜单调取的函数(无返回值,无入参)
2. `setWidget`对窗口部件的放置
```python
wordview:dict = {
'text':'言·论',
'bg':'black',
'fg':'white'
},
settingbox:{}, #后文详细说明
tracklist:{},
operation:{},
map:{},
```
注: