Update app.py
Browse files
app.py
CHANGED
|
@@ -176,7 +176,7 @@ class EvaluationGymnique:
|
|
| 176 |
run = para.add_run("NB1 : Zone réservée aux membres du jury ! Le jury cochera le point correspondant au niveau de réalisation de l'élément gymnique par le candidat.")
|
| 177 |
run.bold = True
|
| 178 |
run.font.color.rgb = RGBColor(255, 0, 0)
|
| 179 |
-
run.font.size = Pt(
|
| 180 |
|
| 181 |
def creer_tableau_recapitulatif(self):
|
| 182 |
note_table = self.document.add_table(rows=3, cols=13)
|
|
@@ -198,7 +198,7 @@ class EvaluationGymnique:
|
|
| 198 |
cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 199 |
for run in cell.paragraphs[0].runs:
|
| 200 |
run.bold = True
|
| 201 |
-
run.font.size = Pt(
|
| 202 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 203 |
|
| 204 |
for col, (titre, points) in enumerate([("ROV", "2pts"), ("Projet", "2pts"), ("Réalisation", "16pts")], 10):
|
|
@@ -208,7 +208,7 @@ class EvaluationGymnique:
|
|
| 208 |
cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 209 |
for run in cell.paragraphs[0].runs:
|
| 210 |
run.bold = True
|
| 211 |
-
run.font.size = Pt(
|
| 212 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 213 |
|
| 214 |
for col in range(5):
|
|
@@ -219,14 +219,14 @@ class EvaluationGymnique:
|
|
| 219 |
neg_cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 220 |
for run in neg_cell.paragraphs[0].runs:
|
| 221 |
run.italic = True
|
| 222 |
-
run.font.size = Pt(
|
| 223 |
|
| 224 |
note_cell = note_table.cell(1, idx + 1)
|
| 225 |
note_cell.text = "Note"
|
| 226 |
note_cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 227 |
for run in note_cell.paragraphs[0].runs:
|
| 228 |
run.italic = True
|
| 229 |
-
run.font.size = Pt(
|
| 230 |
|
| 231 |
for col in range(10, 13):
|
| 232 |
if col < len(note_table.columns):
|
|
@@ -256,7 +256,7 @@ class EvaluationGymnique:
|
|
| 256 |
p = cell.paragraphs[0]
|
| 257 |
run = p.add_run("NB2: Après le choix des catégories d'éléments gymniques par le candidat, ce dernier remplira la colonne de pointage selon l'orientation suivante: A (0.25; 0.5; 0.75; 1) B (0.25; 0.5; 0.75; 1; 1.25; 1.5) C (0.5; 0.75; 1; 1.25; 1.5; 2) D (0.75; 1; 1.25; 1.5; 2; 2.5) et E (0.75; 1; 1.5; 2; 2.5; 3) également, le candidat devra fournir 2 copies de son projet sur une page! (appréciations: NR, NM, PM, M).")
|
| 258 |
run.italic = True
|
| 259 |
-
run.font.size = Pt(
|
| 260 |
|
| 261 |
def ajouter_zone_note(self):
|
| 262 |
zone_note = self.document.add_table(rows=1, cols=2)
|
|
@@ -264,7 +264,7 @@ class EvaluationGymnique:
|
|
| 264 |
zone_note.alignment = WD_TABLE_ALIGNMENT.RIGHT
|
| 265 |
|
| 266 |
# Définir une largeur fixe pour les deux cellules
|
| 267 |
-
cell_width = Cm(
|
| 268 |
|
| 269 |
cell_libelle = zone_note.cell(0, 0)
|
| 270 |
cell_libelle.width = cell_width
|
|
@@ -272,7 +272,7 @@ class EvaluationGymnique:
|
|
| 272 |
cell_libelle.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.RIGHT
|
| 273 |
run = cell_libelle.paragraphs[0].runs[0]
|
| 274 |
run.bold = True
|
| 275 |
-
run.font.size = Pt(
|
| 276 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 277 |
|
| 278 |
cell_saisie = zone_note.cell(0, 1)
|
|
@@ -284,15 +284,15 @@ class EvaluationGymnique:
|
|
| 284 |
cell_saisie.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 285 |
run = cell_saisie.paragraphs[0].runs[0]
|
| 286 |
run.bold = True
|
| 287 |
-
run.font.size = Pt(
|
| 288 |
|
| 289 |
# Ajouter plus d'espace avant la liste des correcteurs
|
| 290 |
-
self.document.add_paragraph().space_after = Pt(
|
| 291 |
-
self.document.add_paragraph().space_after = Pt(
|
| 292 |
|
| 293 |
def ajouter_lignes_correcteurs(self):
|
| 294 |
para_intro = self.document.add_paragraph()
|
| 295 |
-
para_intro.space_before = Pt(
|
| 296 |
|
| 297 |
for role in ["Projet", "principal", "ROV"]:
|
| 298 |
para = self.document.add_paragraph()
|
|
|
|
| 176 |
run = para.add_run("NB1 : Zone réservée aux membres du jury ! Le jury cochera le point correspondant au niveau de réalisation de l'élément gymnique par le candidat.")
|
| 177 |
run.bold = True
|
| 178 |
run.font.color.rgb = RGBColor(255, 0, 0)
|
| 179 |
+
run.font.size = Pt(8)
|
| 180 |
|
| 181 |
def creer_tableau_recapitulatif(self):
|
| 182 |
note_table = self.document.add_table(rows=3, cols=13)
|
|
|
|
| 198 |
cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 199 |
for run in cell.paragraphs[0].runs:
|
| 200 |
run.bold = True
|
| 201 |
+
run.font.size = Pt(8)
|
| 202 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 203 |
|
| 204 |
for col, (titre, points) in enumerate([("ROV", "2pts"), ("Projet", "2pts"), ("Réalisation", "16pts")], 10):
|
|
|
|
| 208 |
cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 209 |
for run in cell.paragraphs[0].runs:
|
| 210 |
run.bold = True
|
| 211 |
+
run.font.size = Pt(8)
|
| 212 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 213 |
|
| 214 |
for col in range(5):
|
|
|
|
| 219 |
neg_cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 220 |
for run in neg_cell.paragraphs[0].runs:
|
| 221 |
run.italic = True
|
| 222 |
+
run.font.size = Pt(8)
|
| 223 |
|
| 224 |
note_cell = note_table.cell(1, idx + 1)
|
| 225 |
note_cell.text = "Note"
|
| 226 |
note_cell.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 227 |
for run in note_cell.paragraphs[0].runs:
|
| 228 |
run.italic = True
|
| 229 |
+
run.font.size = Pt(8)
|
| 230 |
|
| 231 |
for col in range(10, 13):
|
| 232 |
if col < len(note_table.columns):
|
|
|
|
| 256 |
p = cell.paragraphs[0]
|
| 257 |
run = p.add_run("NB2: Après le choix des catégories d'éléments gymniques par le candidat, ce dernier remplira la colonne de pointage selon l'orientation suivante: A (0.25; 0.5; 0.75; 1) B (0.25; 0.5; 0.75; 1; 1.25; 1.5) C (0.5; 0.75; 1; 1.25; 1.5; 2) D (0.75; 1; 1.25; 1.5; 2; 2.5) et E (0.75; 1; 1.5; 2; 2.5; 3) également, le candidat devra fournir 2 copies de son projet sur une page! (appréciations: NR, NM, PM, M).")
|
| 258 |
run.italic = True
|
| 259 |
+
run.font.size = Pt(6)
|
| 260 |
|
| 261 |
def ajouter_zone_note(self):
|
| 262 |
zone_note = self.document.add_table(rows=1, cols=2)
|
|
|
|
| 264 |
zone_note.alignment = WD_TABLE_ALIGNMENT.RIGHT
|
| 265 |
|
| 266 |
# Définir une largeur fixe pour les deux cellules
|
| 267 |
+
cell_width = Cm(1.5)
|
| 268 |
|
| 269 |
cell_libelle = zone_note.cell(0, 0)
|
| 270 |
cell_libelle.width = cell_width
|
|
|
|
| 272 |
cell_libelle.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.RIGHT
|
| 273 |
run = cell_libelle.paragraphs[0].runs[0]
|
| 274 |
run.bold = True
|
| 275 |
+
run.font.size = Pt(9)
|
| 276 |
run.font.color.rgb = RGBColor(0, 32, 96)
|
| 277 |
|
| 278 |
cell_saisie = zone_note.cell(0, 1)
|
|
|
|
| 284 |
cell_saisie.paragraphs[0].alignment = WD_ALIGN_PARAGRAPH.CENTER
|
| 285 |
run = cell_saisie.paragraphs[0].runs[0]
|
| 286 |
run.bold = True
|
| 287 |
+
run.font.size = Pt(9)
|
| 288 |
|
| 289 |
# Ajouter plus d'espace avant la liste des correcteurs
|
| 290 |
+
self.document.add_paragraph().space_after = Pt(5)
|
| 291 |
+
self.document.add_paragraph().space_after = Pt(5)
|
| 292 |
|
| 293 |
def ajouter_lignes_correcteurs(self):
|
| 294 |
para_intro = self.document.add_paragraph()
|
| 295 |
+
para_intro.space_before = Pt(4)
|
| 296 |
|
| 297 |
for role in ["Projet", "principal", "ROV"]:
|
| 298 |
para = self.document.add_paragraph()
|