-
Notifications
You must be signed in to change notification settings - Fork 1
/
physics.kv
53 lines (37 loc) · 1.08 KB
/
physics.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
#: import utils kivy.utils
<PhysicsWidget>:
canvas.before:
Color:
rgba: 1, 1, 1, 1
Rectangle:
pos: self.pos
size: self.size
PhysicsGame:
id: game
toolbox: toolbox
size: root.size
pos: 0, 0
AnchorLayout:
id: toolbox_area
size: root.width, root.height/10
pos: 0, root.height-self.height
padding: 2
anchor_x: "left"
anchor_y: "top"
ToolBox:
id: toolbox
pos_hint: None, None
AnchorLayout:
id: help_container
size: root.size
pos: 0, 0
anchor_x: "center"
anchor_y: "bottom"
Label:
id: help_text_label
size_hint: None, None
size: root.width/2, root.height/10
text: "Hi! Click on Tools and start doodling! You can scroll the toolbar \n \t\t\t Drag it left/right like you're using a touchscreen."
font_name: "kv/resources/Raleway-SemiBold.ttf"
font_size: 24
color: [0, 0, 0, 1]