-
Notifications
You must be signed in to change notification settings - Fork 0
/
go.kv
36 lines (33 loc) · 825 Bytes
/
go.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
#:kivy 1.10.1
#:import w kivy.core.window.Window
<Board>:
#:set canvas_y w.height-(85/100*w.width)-w.width*10/100
size_hint_x: 0.9
size_hint_y: 90/100*w.width/w.height
x: w.width*5/100
y: canvas_y
canvas:
Color:
rgba: 230/255, 115/255, 0, 1
Rectangle:
pos: self.pos
size: self.size
<GoGame>:
canvas:
Color:
rgba: 1,1,1,1
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
size:w.size
pos:0,0
Board:
id: board
Button:
text: "Pass turn"
size_hint_x: 0.5
size_hint_y: 0.1
x: w.width/2-w.width/4
center_y: canvas_y/2
on_press: self.parent.parent.pass_turn()