-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfindb.kv
67 lines (60 loc) · 1.45 KB
/
findb.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
#:kivy 1.9.1
#:import Rectangle kivy.graphics.Rectangle
<ResetButton@Button>:
image:_image
size_hint:None,1
Image:
id:_image
opacity:1
source:'smile.png'
size_hint:None,None
pos_hint:None,None
size:root.size
pos:root.pos
<StatusBar@RelativeLayout>:
toggle_mark:_toggle_mark
button_reset:_button_reset
label_left_bomb:_label_left_bomb
label_level:_label_level
size_hint:1,None
height:40
Label:
id:_label_left_bomb
size_hint:None,1
width:100
x:0
text:'0'
Label:
id:_label_level
size_hint:None,1
width:60
x:root.x + 100
text:'Level:1'
ResetButton:
id:_button_reset
width:60
x:root.x + (root.width - self.width)/2
on_press:app.root.Restart()
Button:
text:'...'
size_hint:None,1
width:30
x:root.x + root.width - self.width - _toggle_mark.width
on_press:app.open_settings()
ToggleButton:
id:_toggle_mark
size_hint:None,1
width:80
x:root.x + root.width - self.width
text:'Mark'
<PlayArea>:
size_hint:1,1
<FindBWidget>:
play_area:_play_area
status_bar:_status_bar
background_color:0,1,0,1
orientation:'vertical'
StatusBar:
id:_status_bar
PlayArea:
id:_play_area