-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_LibraryApp.kv
110 lines (94 loc) · 2.51 KB
/
test_LibraryApp.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
WindowManager:
MainScreen:
AddBook:
FindBook:
<MainScreen>:
name: "main"
canvas.before:
Rectangle:
size: self.size
source: "Images/Library.jpg"
RelativeLayout:
Label:
text: "Ի մ Գ ր ա դ ա ր ա ն ը"
font_name: 'fonts/Artsakh-Font .ttf'
pos_hint: { "center_x": .5, "center_y": .8}
font_size: 40
Button:
text: "Նոր Գիրք"
background_normal: ''
background_color: .94, .35, .13, 1
font_name: 'fonts/davel-aghvor.otf'
font_size: 40
pos_hint: { "center_x": .5, "center_y": .6}
size_hint: 0.2, 0.15
on_release:
app.root.current = "add_book"
root.manager.transition.direction = "right"
Button:
text: "Գտնել Գիրք"
background_normal: ''
background_color: .14, .12, .13, .95
font_name: 'fonts/davel-aghvor.otf'
font_size: 40
size_hint: 0.2, 0.15
pos_hint: { "center_x": .5, "center_y": .4}
on_release:
app.root.current = "find_book"
root.manager.transition.direction = "left"
<AddBook>:
name: "add_book"
author: author
canvas.before:
Color:
rgba: .94, .35, .13, 0.98
Rectangle:
size: self.size
RelativeLayout:
Label:
text: "Հեղինակ"
font_name: 'fonts/Artsakh-Font .ttf'
font_size: 30
pos_hint: { "center_x": .3, "center_y": .45 }
size_hint: 0.2, 0.15
TextInput:
id: input
hint_text:'Enter text'
pos_hint: {'center_x': 0.5, 'center_y': 0.45}
size_hint: 0.2, 0.15
on_text: app.process()
TextInput:
id: author
hint_text:'Enter Author'
pos_hint: {'center_x': 0.5, 'center_y': 0.45}
multiline: 0
on_text: app.process()
Label:
text: "Լեզու"
font_name: 'fonts/Artsakh-Font .ttf'
font_size: 30
pos_hint: { "center_x": .3, "center_y": .65}
size_hint: 0.2, 0.15
Button:
text: "Հին Գիրք"
background_normal: ''
background_color: .94, .35, .13, 1
font_name: 'fonts/davel-aghvor.otf'
font_size: 30
pos_hint: { "center_x": .5, "center_y": .65}
size_hint: 0.2, 0.15
on_release:
<FindBook>:
name: "find_book"
BoxLayout:
orientation: "vertical"
size: (root.width)/2, (root.height)/2
Label:
text: "Text11"
font_size: 25
Button:
text: "Text22"
font_size: 25
on_release:
app.root.current = "main"
root.manager.transition.direction = "right"