-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
144 lines (120 loc) · 3.37 KB
/
main.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
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
<Smg>
Telaincio:
name:'Tela_inicio'
Telalogin:
name:'Tela_login'
Telauso:
name:'Tela_uso'
# Setfiles:
# name:'setfiles'
<Telaincio>
MDBoxLayout:
orientation:'vertical'
Image:
source:'logo-transportesserrana2.jpg'
MDLabel:
id:lberro
<Telalogin>
#Screen:
MDBoxLayout:
orientation:'vertical'
Image:
source:'logo-transportesserrana2.jpg'
MDTextField:
id: txcpf
size_hint_x:.50
pos_hint: {"center_x":0.5}
hint_text: "CPF"
helper_text: "CPF"
max_text_length:11
MDTextField:
id: txusuario
size_hint_x:.50
pos_hint: {"center_x":0.5}
hint_text: "Usuario"
helper_text: "Usuario SSW"
max_text_length:8
MDTextField:
id: txsenha
size_hint_x:.50
pos_hint: {"center_x": .5}
hint_text: "Senha"
helper_text: "Sennha SSW"
password: True
max_text_length:8
MDBoxLayout:
orientation:'vertical'
padding:10
spacing:10
MDRaisedButton:
id: btiniciarlogin
pos_hint: {"center_x": .5, "center_y": .5}
size_hint_x: .6
text:'Entrar'
on_release: root.sendlogin(txcpf.text, txusuario.text, txsenha.text)
<Telauso>
MDBoxLayout:
orientation:'vertical'
Image:
source:'logo-transportesserrana2.jpg'
MDBoxLayout:
orientation:'vertical'
pos_hint:{"center_x": .5, "center_y": .5}
id:gridarqivos
MDTextField:
id: txplaca
size_hint_x:.50
pos_hint: {"center_x": .5}
hint_text: "Placa de Carregamento"
helper_text: "Placa"
max_text_length:7
MDRoundFlatIconButton:
text: "Arquivos"
icon: "folder"
pos_hint: {"center_x": .5, "center_y": .7}
on_release: root.file_manager_open()
MDLabel:
id:lbcaminho
MDGridLayout:
cols:2
MDCheckbox:
id:bxctrc
size_hint_x:0.1
active:True
MDLabel:
text:"Importar CTRCs"
MDCheckbox:
id: bxtransportadora
size_hint_x:0.1
active:True
MDLabel:
text:"Cadastro de Transportadora"
MDCheckbox:
id:bxlancar
size_hint_x:0.1
active:True
MDLabel:
text:"Lançar CTRC"
MDBoxLayout:
orientation:'vertical'
padding:10
spacing:10
MDRaisedButton:
id:btiniciar
pos_hint: {"center_x": .5, "center_y": .5}
size_hint_x: .6
text:'Iniciar'
on_release:root.iniciar()
md_bg_color_disabled:'grey'
#<Setfiles>
#
# MDBoxLayout:
# orientation: "vertical"
#
# MDTopAppBar:
# title: ""
# left_action_items: [["menu", lambda x: None]]
# elevation: 3
#
# MDFloatLayout:
#