-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathWidPopups.kv
78 lines (66 loc) · 1.65 KB
/
WidPopups.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
#:kivy 1.11.0
# Modulo de Popups
# ----- Popup Novo ----- #
<PopupSalvar>:
id: pop_salvar
pos_hint: {'x': .35, 'y': .55}
size_hint: (.15, .20)
title_color: (0.831, 0.941, 1, 1)
auto_dismiss: False
title_align: 'center'
background: 'Images/FundoC_Borda40.png'
Button:
id: btn_novosalvo
background_normal: ''
background_color: (0, 0, 0, .4)
size_hint: (.90, .50)
color: (0.831, 0.941, 1, 1)
text: 'Clique para voltar'
on_press: root.dismiss()
# ----- Popup falta de dados no formulário ----- #
<PopupFaltaDados>:
id: pop_faltadados
size_hint: (.10, .02)
pos_hint: {'x': .65, 'y': .75}
auto_dismiss: True
title_align: 'left'
title_color: [1, 0, 0, 1]
title_size: '19sp'
bold: True
title: '?'
separator_color: [0, 0, 0, 0]
background: 'Images/FundoTransparente.png'
# ----- Popup de confirmação ----- #
<PopupConfirmacao>:
id: pop_novosalvo
pos_hint: {'x': .35, 'y': .55}
size_hint: (.15, .20)
title_color: (0.831, 0.941, 1, 1)
title: 'Tem a certeza \n que quer apagar?'
auto_dismiss: False
title_align: 'center'
background: 'Images/FundoC_Borda40.png'
BoxLayout:
canvas:
Color:
rgba: (0, 0, 0, 0)
Rectangle:
pos: self.pos
size: self.size
size_hint_y: (.50)
spacing: 5
Button:
id: btn_novosalvo
background_normal: ''
background_color: (0, 0, 0, .4)
color: (0.831, 0.941, 1, 1)
text: 'Sim'
on_release: app.root.apagar_registro()
on_release: root.dismiss()
Button:
id: btn_novosalvo
background_normal: ''
background_color: (0, 0, 0, .4)
color: (0.831, 0.941, 1, 1)
text: root.texto
on_press: root.dismiss()