-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestxmms.kv
executable file
·74 lines (72 loc) · 1.82 KB
/
testxmms.kv
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
#:kivy 1.7.1
<MediaBar>:
title_label: title_label
artist_label: artist_label
album_label: album_label
playback_slider: playback_slider
prev_btn: prev_btn
play_btn: play_btn
next_btn: next_btn
cols: 2
rows: 1
size_hint: 1, None
height: 105
GridLayout:
cols: 1
Label:
id: title_label
text: "title"
bold: True
size_hint: 1, None
height: 25
Label:
id: artist_label
text: "Artist"
size_hint: 1, None
height: 25
Label:
id: album_label
text: "Album"
size_hint: 1, None
height: 25
BoxLayout:
size_hint: 1, None
height: 30
Label:
id: pos_label
text: root.time_str(playback_slider.value)
size_hint: None, 1
width: 50
Slider:
id: playback_slider
max: 0
value: 0
Label:
id: length_label
text: root.time_str(playback_slider.max)
size_hint: None, 1
width: 50
AnchorLayout:
anchor_x: 'center'
anchor_y: 'bottom'
padding: 5
size_hint: None, 1
width: 100
GridLayout:
cols: 2
rows: 2
Button:
id: prev_btn
text: "Waiting"
size_hint: 0.5, None
height: 50
Button:
id: next_btn
text: "Waiting"
size_hint: 0.5, None
height: 50
Button:
id: play_btn
text: "Waiting"
size_hint: 0.5, None
height: 50