-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.kv
More file actions
191 lines (182 loc) · 4.68 KB
/
doc.kv
File metadata and controls
191 lines (182 loc) · 4.68 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#:include propriedades.kv
#:import C kivy.utils.get_color_from_hex
#:import NoTransition kivy.uix.screenmanager.NoTransition
<TransicaoTela>:
Inicial:
WidgetsKivy:
SintaxePy:
SintaxeKv:
SintaxeLb:
<Inicial>:
name:'inicial'
FloatLayout:
Action:
ActionView:
ActionPrevious:
title: 'Projeto Documentação Kivy'
with_previous: False
Image:
source:'kivylogo.png'
#size_hint: .5, .5
pos_hint:{'center_x':.5, 'center_y':.7}
size_hint:6., .6
Label:
text:'DocApp'
pos_hint:{'center_x':.5, 'center_y':.4}
font_size:sp(40)
color:C('#000000')
Label:
text:'Um guia básico para a utilização dos recursos\ndo kivy e suas propriedades'
pos_hint:{'center_x':.5, 'center_y':.3}
font_size:sp(24)
color:C('#000000')
halign:"center"
Button:
text:"Iniciar"
size_hint:.4, .09
bold:True
pos_hint:{'center_x':.5, 'center_y':.15}
font_size:sp(24)
on_press:app.root.current='widgetskivy'
<WidgetsKivy>:
name:'widgetskivy'
FloatLayout:
Action:
ActionView:
ActionPrevious:
title: 'Projeto Documentação Kivy'
on_press: app.root.current='inicial'
Label:
text:'Selecione o recurso que deseja explorar'
pos_hint:{'center_x':.5, 'center_y':.85}
color:C('#000000')
font_size:dp(24)
ScrollView:
size_hint: .9, .7
pos_hint:{'center_x':.5, 'center_y':.45}
GridLayout:
cols:2
size_hint_y:None
row_default_height: dp(100)
row_force_default: True
height: self.minimum_height
spacing: 10
ButtonWid:
text:'Sintaxe .py'
on_press: app.root.current='sintaxepy'
ButtonWid:
text:'Sintaxe .kv'
on_press: app.root.current='sintaxekv'
ButtonWid:
text:'Label'
on_press: app.root.current='sintaxelb'
ButtonWid:
text:'Button'
ButtonWid:
text:'TextInput'
ButtonWid:
text:'FloatLayout'
ButtonWid:
text:'BoxLayout'
ButtonWid:
text:'GridLayout'
ButtonWid:
text:'ScrollView'
ButtonWid:
text:'Cores'
ButtonWid:
text:'Buildkv'
ButtonWid:
text:'Exemplos app'
<SintaxePy>:
name:'sintaxepy'
FloatLayout:
Action:
ActionView:
ActionPrevious:
title: 'Projeto Documentação Kivy'
on_press: app.root.current='widgetskivy'
Label:
text:'Sintaxe Básica do arquivo Python'
color:C('#000000')
pos_hint:{'center_x':.5, 'center_y':.85}
font_size:sp(24)
ScrollView:
size_hint: .9, .7
pos_hint:{'center_x':.5, 'center_y':.45}
GridLayout:
cols:1
size_hint_y:None
row_default_height: dp(400)
height: self.minimum_height
spacing: 10
CampoCod:
text:text_py
<SintaxeKv>:
name:'sintaxekv'
FloatLayout:
Action:
ActionView:
ActionPrevious:
title:'Projeto Documentação Kivy'
on_press: app.root.current='widgetskivy'
Label:
text:'Sintaxe Básica do arquivo Kivy'
color:C('#000000')
pos_hint:{'center_x':.5, 'center_y':.85}
font_size:sp(24)
ScrollView:
size_hint: .9, .7
pos_hint:{'center_x':.5, 'center_y':.45}
GridLayout:
cols:1
size_hint_y:None
row_default_height: dp(420)
height: self.minimum_height
spacing: 10
CampoCod:
text:text_kv
<SintaxeLb>:
name:'sintaxelb'
FloatLayout:
Action:
ActionView:
ActionPrevious:
title: 'Projeto Documentação Kivy'
on_press: app.root.current='widgetskivy'
Label:
text:'Propriedades: Label'
color:C('#000000')
pos_hint:{'center_x':.5, 'center_y':.85}
font_size:sp(24)
ScrollView:
size_hint: .9, .7
pos_hint:{'center_x':.5, 'center_y':.45}
GridLayout:
cols:1
size_hint_y:None
row_default_height: dp(80)
height: self.minimum_height
spacing: 5
Label:
text:'Label 1'
color:C('#FD2A4A')
CampoCod:
text:text_lb1
Label:
text:'Label 1'
color:C('#FD2A4A')
bold:True
font_size:dp(20)
underline: True
CampoCod:
text:text_lb2
Label:
font_size:dp(20)
text: 'Clique [b][ref=aqui]aqui[/ref][/b] para testar!'
markup: True
color:C('#FD2A4A')
underline: True
on_ref_press:app.root.current_screen.clique()
CampoCod:
text:text_lb3