Skip to content
Snippets Groups Projects
Commit 5b8ddbd4 authored by SBAIHI Dylan's avatar SBAIHI Dylan
Browse files

Upload New File

parent 2da81066
No related branches found
No related tags found
No related merge requests found
#:kivy 2.0
# Filename: scmMD.kv
<UserChoiceScreen>:
MDBoxLayout:
padding: '15dp'
spacing: '15dp'
orientation: "vertical"
MDCard:
size: root.width, root.height
padding: '25dp'
spacing: '25dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDLabel:
text: "Sélèctionner votre espace"
halign: "center"
font_size: 24
size_hint_y: None
MDBoxLayout:
size_hint_y: None
adaptive_width: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: '25dp'
spacing: '25dp'
orientation: 'horizontal'
halign: 'center'
md_bg_color: app.theme_cls.primary_color
MDRaisedButton:
text: "Élève"
font_size: 18
pos_hint: {'center_y': 0.5}
md_bg_color: app.theme_cls.primary_light
on_release:
root.on_user_selected(self)
root.manager.transition.direction = 'left'
MDRaisedButton:
text: "Professeur"
font_size: 18
pos_hint: {'center_y': 0.5}
on_release:
root.on_user_selected(self)
root.manager.transition.direction = 'left'
md_bg_color: app.theme_cls.primary_light
MDRaisedButton:
text: "Admin"
font_size: 18
pos_hint: {'center_y': 0.5}
md_bg_color: app.theme_cls.primary_light
on_release:
root.on_user_selected(self)
root.manager.transition.direction = 'left'
MDRaisedButton:
text: "Quitter"
font_size: 18
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
on_release: root.quit(self)
md_bg_color: app.theme_cls.primary_light
# LoginScreen
<LoginScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: '10dp'
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDLabel:
id: conn_role
text: "Espace "
halign: "center"
font_size: 24
size_hint_y: None
MDTextField:
id: username_input
hint_text: "Nom d'utilisateur"
MDTextField:
id: password_input
hint_text: "Mot de passe"
password: True
MDBoxLayout:
md_bg_color: app.theme_cls.primary_light
size_hint_y: None
adaptive_width: True
adaptive_height: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: '25dp'
spacing: '25dp'
orientation: 'horizontal'
halign: 'center'
MDRaisedButton:
text: "Se connecter"
font_size: 18
pos_hint: {'center_y': 0.5}
on_press:
root.on_login(self)
root.manager.transition.direction = 'up'
MDRaisedButton:
text: "Créer un compte"
font_size: 18
pos_hint: {'center_y': 0.5}
on_press:
root.on_create(self)
root.manager.transition.direction = 'up'
MDBoxLayout:
md_bg_color: app.theme_cls.primary_light
size_hint_y: None
adaptive_size: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: '25dp'
spacing: '25dp'
orientation: 'horizontal'
halign: 'center'
MDRaisedButton:
text: "Retourner au menu"
font_size: 18
pos_hint: {'center_y': 0.5}
on_press:
root.back_home(self)
root.manager.transition.direction = 'right'
MDRaisedButton:
text: "Quitter"
font_size: 18
pos_hint: {'center_y': 0.5}
on_press: root.quit(self)
# LoginAdminScreen
<LoginAdminScreen>:
BoxLayout:
orientation: 'vertical'
spacing: '10dp'
padding: '10dp'
MDLabel:
id: conn_role
text: "Espace "
MDTextField:
id: username_input
hint_text: "Nom d'utilisateur"
MDTextField:
id: password_input
hint_text: "Mot de passe"
password: True
BoxLayout:
MDRaisedButton:
text: "Se connecter"
on_release:
root.on_admlogin(self)
root.manager.transition.direction = 'up'
MDRaisedButton:
text: "Retourner au menu"
on_release:
root.back_home(self)
root.manager.transition.direction = 'right'
MDRaisedButton:
text: "Quitter"
on_release: root.quit(self)
# CreateAccountScreen
<CreateEtuAccountScreen>:
BoxLayout:
orientation: 'vertical'
padding: 10
MDLabel:
text: "Création de compte"
GridLayout:
cols: 1
BoxLayout:
orientation: 'horizontal'
MDTextField:
id: name_input
hint_text: "Entrer votre nom"
multiline: False
MDTextField:
id: pname_input
hint_text: "Entrer votre prénom"
multiline: False
MDTextField:
id: create_password_input
hint_text: "Mot de passe"
password: True
BoxLayout:
orientation: "horizontal"
CheckBox:
group: 'annee'
id: annee_1
data: '1'
active: False
on_active: root.on_checkbox_active_year(self, self.active)
MDLabel:
text: '1ere année'
CheckBox:
group: 'annee'
id: annee_2
data: '2'
active: False
on_active: root.on_checkbox_active_year(self, self.active)
MDLabel:
text: '2eme année'
CheckBox:
group: 'annee'
id: annee_3
data: '3'
active: False
on_active: root.on_checkbox_active_year(self, self.active)
MDLabel:
text: '3eme année'
MDTextField:
id: mail_input
hint_text: "Entrer votre @mail"
multiline: False
BoxLayout:
orientation: "horizontal"
CheckBox:
group: 'group'
id: grp_1
data: '1'
active: False
on_active: root.on_checkbox_active_grp(self, self.active)
MDLabel:
text: 'groupe 1'
CheckBox:
group: 'group'
id: grp_2
data: '2'
active: False
on_active: root.on_checkbox_active_grp(self, self.active)
MDLabel:
text: 'groupe 2'
CheckBox:
group: 'group'
id: grp_3
data: '3'
active: False
on_active: root.on_checkbox_active_grp(self, self.active)
MDLabel:
text: 'groupe 3'
BoxLayout:
orientation: "horizontal"
MDLabel:
text: "Votre identifiant (à conserver) :"
MDLabel:
id: login_label_register
text: ""
MDRaisedButton:
text: "Enregistrer"
on_release: root.register(self)
MDRaisedButton:
text: "Quitter"
on_release: root.quit(self)
<CreateProfAccountScreen>:
BoxLayout:
orientation: 'vertical'
padding: 10
MDLabel:
text: "Création de compte"
GridLayout:
cols: 1
BoxLayout:
orientation: 'horizontal'
MDTextField:
id: name_input
hint_text: "Entrer votre nom"
multiline: False
MDTextField:
id: pname_input
hint_text: "Entrer votre prénom"
multiline: False
MDTextField:
id: create_password_input_prof
hint_text: "Mot de passe"
password: True
BoxLayout:
orientation: "horizontal"
MDDropDownItem:
id: drop_item_desk
text: 'Bureau'
on_release: root.open_menu_desk(self)
icon_right_color: app.theme_cls.text_color
line_color_normal: app.theme_cls.primary_color
MDDropDownItem:
id: drop_item_mat
text: 'Matiere'
on_release: root.open_menu_mat(self)
icon_right_color: app.theme_cls.text_color
line_color_normal: app.theme_cls.primary_color
BoxLayout:
orientation: "horizontal"
MDLabel:
text: "Votre identifiant (à conserver) :"
MDLabel:
id: login_label_register
text: ""
MDRaisedButton:
text: "Enregistrer"
on_release: root.register(self)
MDRaisedButton:
text: "Quitter"
on_release: root.quit(self)
<EtuScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: '10dp'
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDBoxLayout:
md_bg_color: app.theme_cls.primary_light
padding: '5dp'
spacing: '5dp'
orientation: 'horizontal'
size_hint_y: None
MDLabel:
text: "App ENT"
font_size: 24
halign: "left"
MDLabel:
id: user_label_etu
text: ""
halign: "right"
font_size: 24
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDBoxLayout:
md_bg_color: app.theme_cls.primary_light
adaptive_size: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: '25dp'
spacing: '25dp'
orientation: 'horizontal'
halign: 'center'
MDRaisedButton:
text: "NOTE"
font_size: 18
on_release:
root.note_button(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
text: "ABSCENCE"
font_size: 18
on_release:
root.abscence_button(self)
root.manager.transition.direction = 'down'
MDBoxLayout:
size_hint_y: None
adaptive_size: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: '25dp'
spacing: '25dp'
orientation: 'horizontal'
halign: 'center'
MDRaisedButton:
text: "Back home"
font_size: 18
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
text: "Quitter"
font_size: 18
on_release: root.quit(self)
<ProfScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: "10dp"
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDBoxLayout:
md_bg_color: app.theme_cls.primary_light
padding: '5dp'
spacing: '5dp'
orientation: 'horizontal'
size_hint_y: None
MDLabel:
text: "App ENT"
font_size: 24
halign: "left"
MDLabel:
id: user_label_prof
text: ""
halign: "right"
font_size: 24
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDBoxLayout:
orientation: 'vertical'
spacing: "10dp"
padding: '10dp'
MDLabel:
id: mat_charge_prof
text: "Matière en charge : "
theme_text_color: "Secondary"
MDLabel:
text: "Selected Year:"
theme_text_color: "Secondary"
BoxLayout:
orientation: "horizontal"
CheckBox:
group: 'annee'
id: annee_1_prof
data: '1'
active: False
on_active: root.on_checkbox_active_year_stud(self, self.active)
MDLabel:
text: '1ere année'
CheckBox:
group: 'annee'
id: annee_2_prof
data: '2'
active: False
on_active: root.on_checkbox_active_year_stud(self, self.active)
MDLabel:
text: '2eme année'
CheckBox:
group: 'annee'
id: annee_3_prof
data: '3'
active: False
on_active: root.on_checkbox_active_year_stud(self, self.active)
MDLabel:
text: '3eme année'
MDRaisedButton:
text: "Retourner au menu"
font_size: 18
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
font_size: 18
text: "Quitter"
on_release: root.quit(self)
<ProfSecondYearScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: "10dp"
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDDropDownItem:
id: drop_item
text: 'Select a student'
on_release: root.open_menu(self)
icon_right_color: app.theme_cls.text_color
line_color_normal: app.theme_cls.primary_color
MDLabel:
id: selected_year_label
theme_text_color: "Primary"
MDBoxLayout:
orientation: 'horizontal'
spacing: "10dp"
size_hint: (None, None)
MDLabel:
text: "Note:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: note_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Moyenne:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: moyenne_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Abscence:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: abs_label
text: ""
size_hint_x: None
width: "100dp"
Image:
id: image_student
source: ''
size: self.texture_size
MDRaisedButton:
text: "Retourner au menu"
font_size: 18
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
font_size: 18
text: "Quitter"
on_release: root.quit(self)
<ProfFirstYearScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: "10dp"
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDDropDownItem:
id: drop_item
text: 'Select a student'
on_release: root.open_menu(self)
icon_right_color: app.theme_cls.text_color
line_color_normal: app.theme_cls.primary_color
MDLabel:
id: selected_year_label
theme_text_color: "Primary"
MDBoxLayout:
orientation: 'horizontal'
spacing: "10dp"
size_hint: (None, None)
MDRaisedButton:
text: "Ajouter Note"
font_size: 18
on_release: root.add_note(self)
MDRaisedButton:
font_size: 18
text: "Ajouter Abscence"
on_release: root.add_abs(self)
MDBoxLayout:
orientation: 'horizontal'
spacing: "10dp"
size_hint: (None, None)
MDLabel:
text: "Note:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: note_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Moyenne:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: moyenne_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Abscence:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: abs_label
text: ""
size_hint_x: None
width: "100dp"
Image:
id: image_student
source: ''
size: self.texture_size
MDRaisedButton:
text: "Retourner au menu"
font_size: 18
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
font_size: 18
text: "Quitter"
on_release: root.quit(self)
<ProfThirdYearScreen>:
MDBoxLayout:
orientation: 'vertical'
spacing: "10dp"
padding: '10dp'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
MDCard:
size: root.width, root.height
padding: '10dp'
spacing: '10dp'
orientation: 'vertical'
md_bg_color: app.theme_cls.primary_dark
MDDropDownItem:
id: drop_item
text: 'Select a student'
on_release: root.open_menu(self)
icon_right_color: app.theme_cls.text_color
line_color_normal: app.theme_cls.primary_color
MDLabel:
id: selected_year_label
theme_text_color: "Primary"
MDBoxLayout:
orientation: 'horizontal'
spacing: "10dp"
size_hint: (None, None)
MDLabel:
text: "Note:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: note_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Moyenne:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: moyenne_label
text: ""
size_hint_x: None
width: "100dp"
MDLabel:
text: "Abscence:"
color: app.theme_cls.primary_color
size_hint_x: None
width: "100dp"
MDLabel:
id: abs_label
text: ""
size_hint_x: None
width: "100dp"
Image:
id: image_student
source: ''
size: self.texture_size
MDRaisedButton:
text: "Retourner au menu"
font_size: 18
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
font_size: 18
text: "Quitter"
on_release: root.quit(self)
<AdminScreen>:
BoxLayout:
orientation: 'vertical'
spacing: 10
padding: 10
MDLabel:
id: user_label
text: ""
MDRaisedButton:
text: "Retourner au menu"
on_release:
root.back_home(self)
root.manager.transition.direction = 'down'
MDRaisedButton:
text: "Quitter"
on_release: root.quit(self)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment