mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-09-23 21:06:28 +00:00
完全想好了窗口改怎么做了,正在逐步更新,顺便取代前尘旧物。
This commit is contained in:
@ -34,8 +34,8 @@ functions.py中会调取./addon/目录下的全部功能文件,这些功能文
|
||||
'iconbitmap': ('./resources/musicreater.ico', './resources/musicreater.ico'),
|
||||
'menu' : { #对setMenu有特殊说明
|
||||
'文件': {
|
||||
'新建': lambda : x,
|
||||
'打开': lambda : x,
|
||||
'新建': <function>,
|
||||
'打开': <function>,
|
||||
},
|
||||
},
|
||||
'widget': { #对窗口部件又详细说明
|
||||
@ -74,15 +74,21 @@ functions.py中会调取./addon/目录下的全部功能文件,这些功能文
|
||||
'text': str = 显示内容,
|
||||
# ... 即可用 tk.Label 的参数
|
||||
},
|
||||
button: list = [
|
||||
dict = {
|
||||
按钮名称 : tuple(按钮图标,执行函数)
|
||||
},
|
||||
],
|
||||
settingbox: list = [ #设置部分显示的字样及其对应的设置函数
|
||||
(设置名称:str,值类型,显示内容:str,设置操作函数:function,)
|
||||
]
|
||||
tracklist: int = 音轨数量 #音轨选择框
|
||||
operation: dict = {
|
||||
按钮名称 : 执行函数
|
||||
}
|
||||
(
|
||||
设置名称:str,
|
||||
值类型:tuple,
|
||||
显示内容:str,
|
||||
设置操作函数:<function>,
|
||||
)
|
||||
],
|
||||
map: list = [
|
||||
音符: class Note
|
||||
音符数据
|
||||
]
|
||||
```
|
||||
注:
|
||||
@ -98,9 +104,9 @@ functions.py中会调取./addon/目录下的全部功能文件,这些功能文
|
||||
| 参数 | 对应类中的变量 | 变量类型 | 说明 |
|
||||
|------------|------------------|---------------------------|---------------------|
|
||||
| wordview | wordview | str | 显示在 言·论 区域的文字 |
|
||||
| button | button | list[dict{}] | 操作按钮 |
|
||||
| settingbox | settings | list[ Any ] | 设置项目中的值 |
|
||||
| tracklist | tracknum | tuple(int,int) | 当前选择到的音轨与音轨总数|
|
||||
| operation | buttons | list[ tkinter.Button ] | 按钮列表 |
|
||||
| map | notes | list[ class Note ] | 当前的音符列表 |
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user