-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathUI.json
More file actions
118 lines (118 loc) · 3.71 KB
/
UI.json
File metadata and controls
118 lines (118 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"fileFromButton": {
"class": "Button",
"int": {"width": 10},
"string": {"text": "选择文件"},
"command": "file_from_button_callback",
"grid": {"row":0, "column":0, "sticky":["W", "E"]}
},
"musicPathEntry": {
"class": "Entry",
"var": "musicPath",
"int": {"width": 60},
"string": {"state": "disable"},
"grid": {"row":0, "column":1, "sticky":["W", "E"]}
},
"playOptionCombobox": {
"class": "Combobox",
"var": "playOption",
"int": {"width": 10},
"string": {"state": ["readonly"], "values": ["单曲播放", "顺序播放", "随机播放", "收藏顺序", "收藏随机", "热度播放"]},
"grid": {"row":0, "column":2}
},
"startButton": {
"class": "Button",
"bind": {"<Button-1>": "music_start"},
"int": {"width": 15},
"string": {"text": "播放"},
"grid": {"row":0, "column":3, "sticky":["W", "E"]}
},
"stopButton": {
"class": "Button",
"bind": {"<Button-1>": "music_stop"},
"int": {"width": 10},
"string": {"text": "停止"},
"grid": {"row":0, "column":4, "sticky":["W", "E"]}
},
"infoLabel": {
"class": "Label",
"var": "info",
"int": {"height": 3},
"string": {"font": "Arial, 12", "background": "black", "foreground": "white"},
"grid": {"row":1, "column":0, "columnspan": 5, "sticky":["W", "E", "N", "S"]}
},
"lyricLabel": {
"class": "Label",
"var": "lyric",
"int": {"height": 1},
"string": {"font": "Arial, 12", "background": "black", "foreground": "white"},
"grid": {"row":2, "column":0, "columnspan": 5, "sticky":["W", "E", "N", "S"]}
},
"playTimeLabel": {
"class": "Label",
"var": "playTime",
"grid": {"row":3, "column":0, "sticky":["W", "E"]}
},
"musicProgressScale": {
"class": "Scale",
"string": {"orient": "horizontal"},
"int": {"from_": 0, "to": 100},
"var": "music_progress_scale_value",
"bind": {"<ButtonRelease-1>": "set_music_progress",
"<Button-1>": "play_time_count_pause",
"<B1-Motion>": "set_music_start_time"},
"grid": {"row":3, "column":1, "columnspan": 2,"sticky":["W", "E"]}
},
"musicTimeLabel": {
"class": "Label",
"var": "musicTime",
"grid": {"row":3, "column":3, "sticky":["W", "E"]}
},
"searchButton": {
"class": "Button",
"bind": {"<Button-1>": "music_search"},
"int": {"width": 15},
"string": {"text": "搜索"},
"grid": {"row":3, "column":4, "sticky":["W", "E"]}
},
"musicListTreeview": {
"class": "Treeview",
"bind": {"<Double-1>": "double_click_music_callback"},
"string": {"show": "headings", "columns": ["a", "b", "c", "d"]},
"int": {"height":10},
"grid": {"row":4, "column":0, "columnspan": 5, "sticky":["W", "E", "N", "S"]}
},
"musicListVbar": {
"class": "Scrollbar",
"string": {"orient": "vertical"},
"grid": {"row":4, "column":5, "sticky":["N", "S"]}
},
"prevMusicButton": {
"class": "Button",
"bind": {"<Button-1>": "prev_music"},
"int": {"width": 10},
"string": {"text": "前一首"},
"grid": {"row":5, "column":0, "sticky":["W", "E"]}
},
"nextMusicButton": {
"class": "Button",
"bind": {"<Button-1>": "next_music"},
"int": {"width": 10},
"string": {"text": "下一首"},
"grid": {"row":5, "column":2, "sticky":["W", "E"]}
},
"volumeOnOffButton": {
"class": "Button",
"bind": {"<Button-1>": "volume_on_off"},
"int": {"width": 15},
"string": {"text": "音量开"},
"grid": {"row":5, "column":3, "sticky":["W", "E"]}
},
"musicVolumeScale": {
"class": "Scale",
"string": {"orient": "horizontal"},
"int": {"from_": 0, "to": 100},
"bind": {"<ButtonRelease-1>": "set_music_scale_volume"},
"grid": {"row":5, "column":4, "sticky":["W", "E"]}
}
}