-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.kv
43 lines (37 loc) · 933 Bytes
/
test.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
#:import Win kivy.core.window.Window
#:import isdir os.path.isdir
#:set variable value
#:kivy 1.9.2
<Rule>:
## To Do: ...
canvas.before:
Color:
rgb: (1, 1, 1)
Rectangle:
pos: self.pos
canvas.after:
Line:
points: [1, 1, 1, 1]
PushMatrix()
Screen:
id: 'myscreen'
name: 'scr1'
Custom:
text: 'Hello World!'
font_size: 30.5
font_name: root.path + '/font.ttf'
size_hint: None, None
pos_hint: {'top': 1.45, 'right': 1.1}
height: self.texture_size[1] * 3.5
on_release: root.current = 'scr2'
on_release: root.func(self.text, 0)
<Custom@ButtonBehavior+AsyncImage>:
on_press: self.color = (1, 1, 1, 0.4)
size: map(lambda x: ...)
Styles:
Default
Solarized-light
Obsidian
Solarized
Bespin
HotFudgeSundae