-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aa46da
commit 2a8e2b9
Showing
4 changed files
with
188 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,137 @@ | ||
<CadastrarCurso> | ||
#: import Factory kivy.factory.Factory | ||
|
||
<CadastrarCurso> | ||
BoxLayout: | ||
orientation:'horizontal' | ||
|
||
BoxLayout: | ||
size_hint_x: 0.2 | ||
|
||
CustomBoxLayout: | ||
|
||
orientation: 'vertical' | ||
padding: '40dp' | ||
spacing: 2 | ||
|
||
MDLabel: | ||
text: "CADASTRO DE CURSO" | ||
halign: "center" | ||
pos_hint: {'center_x': 0.5, 'center_y': 0.75} | ||
font_size: 35 | ||
|
||
BoxLayout: | ||
orientation: 'horizontal' | ||
spacing: 5 | ||
|
||
MDLabel: | ||
id: idcurso | ||
hint_text:"ID" | ||
text: '-' | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
size_hint_x: 0.07 | ||
|
||
|
||
MDTextField: | ||
id: desc | ||
hint_text:"Descriçao" | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
size_hint_x: 0.7 | ||
write_tab: False | ||
multiline: False | ||
max_text_length: 100 | ||
#line_color_normal: [0,1,1,1] | ||
#line_color_focus: [0,1,0,1] | ||
|
||
MDTextField: | ||
id: ch | ||
hint_text:"CH" | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
size_hint_x: 0.23 | ||
max_text_length: 11 | ||
#line_color_normal: [0,1,1,1] | ||
#line_color_focus: [0,1,0,1] | ||
write_tab: False | ||
|
||
CustomSpinner: | ||
id: sala | ||
text: 'Sala' | ||
size_hint: 0.1, None # Reduz o tamanho verticalmente (altura) | ||
height: dp(30) # Define uma altura específica (30 pixels neste exemplo) | ||
size_hint_x: None # Permite definir uma largura fixa | ||
width: dp(150) # Define uma largura específica (80 pixels neste exemplo) | ||
pos_hint: {'center_x':0.5,'center_y':0.8} # Centraliza horizontalmente | ||
values: 'a', 'a', 'a', 'v' # Os valores do spinner | ||
font_size: '17sp' # Define o tamanho da fonte | ||
color: 'black' # Define a cor do texto como branco (RGBA) | ||
background_normal: '' # Remove o fundo padrão do Spinner | ||
background_color: 0.18,0.53,1,1 # Define a cor de fundo do Spinner | ||
|
||
option_cls: Factory.get('SpinnerOption') # Define a classe das opções do spinner | ||
|
||
BoxLayout: | ||
orientation: 'horizontal' | ||
spacing: 5 | ||
MDTextField: | ||
id: numod | ||
hint_text:"Nº de modulos" | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
#line_color_normal: [0,1,1,1] | ||
#line_color_focus: [0,1,0,1] | ||
write_tab: False | ||
|
||
|
||
MDTextField: | ||
id: valor | ||
hint_text:"valor" | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
max_text_length: 120 | ||
#line_color_normal: [0,1,1,1] | ||
#line_color_focus: [0,1,0,1] | ||
write_tab: False | ||
|
||
MDTextField: | ||
id: dupli | ||
hint_text:"nº duplicatas" | ||
pos_hint: {'center_x':0.5,'center_y':0.8} | ||
max_text_length: 50 | ||
#line_color_normal: [0,1,1,1] | ||
#line_color_focus: [0,1,0,1] | ||
write_tab: False | ||
|
||
BoxLayout: | ||
orientation: 'horizontal' | ||
BoxLayout: | ||
BoxLayout: | ||
spacing: 15 | ||
MDFillRoundFlatButton: | ||
id:btnsalvar | ||
text: "SALVAR" | ||
md_bg_color: 0.18,0.53,1,1 | ||
pos_hint: {'center_x':0.5} | ||
size_hint_x: 0.75 | ||
font_size: 20 | ||
on_release: root.salvar_dados() | ||
|
||
MDFillRoundFlatButton: | ||
id: btncancelar | ||
text: 'CANCELAR' | ||
md_bg_color: 'red' | ||
pos_hint: {'center_x':0.5} | ||
size_hint_x: 0.75 | ||
font_size: 20 | ||
on_release: root.principal() | ||
|
||
BoxLayout: | ||
size_hint_x: 0.2 | ||
|
||
|
||
|
||
<SpinnerOption>: | ||
background_normal: '' # Remove o fundo padrão do Spinner | ||
background_color: 0.18,0.53,1,1 # Define a cor de fundo do Spinner | ||
color: 'black' # Define a cor do texto das opções | ||
size_hint: 0.1, None # Reduz o tamanho verticalmente (altura) | ||
height: dp(30) # Define uma altura específica (30 pixels neste exemplo) | ||
size_hint_x: None # Permite definir uma largura fixa | ||
width: dp(150) # Define uma largura específica (80 pixels neste exemplo) | ||
font_size: '15sp' # Define o tamanho da fonte |