This commit is contained in:
Jean-Marie Place 2023-05-25 18:13:28 +02:00
parent 59de947cc6
commit d912b13f75
2 changed files with 3 additions and 5 deletions

View File

@ -165,7 +165,7 @@ class AnneeDesc:
class ParcoursDesc: class ParcoursDesc:
signature_header = FMT.compose( signature_header = FMT.compose(
[ [
(FMT.FILL_BGCOLOR, SCO_COLORS.BLUE.value), (FMT.FILL_BGCOLOR, SCO_COLORS.LIGHT_YELLOW.value),
(FMT.NUMBER_FORMAT, SCO_NUMBER_FORMAT.NUMBER_GENERAL.value), (FMT.NUMBER_FORMAT, SCO_NUMBER_FORMAT.NUMBER_GENERAL.value),
# (FMT.FONT_BOLD, True), # (FMT.FONT_BOLD, True),
# (FMT.FONT_SIZE, SCO_FONTSIZE.FONTSIZE_13.value), # (FMT.FONT_SIZE, SCO_FONTSIZE.FONTSIZE_13.value),
@ -263,9 +263,7 @@ class ParcoursDesc:
), ),
], ],
) )
frame = ws.get_frame_engine( frame = ws.get_frame_engine(1, 1, SCO_BORDERTHICKNESS.BORDER_THICK)
1, 1, SCO_BORDERTHICKNESS.BORDER_THICK
)
column = self.handle_description(ws, titles, 1, 1) column = self.handle_description(ws, titles, 1, 1)
frame.close(4, column - 1) frame.close(4, column - 1)
return column return column

View File

@ -590,7 +590,7 @@ class FMT(Enum):
@classmethod @classmethod
def compose(cls, composition: list[("FMT", int)], signature: int = 0) -> int: def compose(cls, composition: list[("FMT", int)], signature: int = 0) -> int:
for field, value in composition: for field, value in composition:
signature = field.write(value, field.clear(signature)) signature = field.write(value, field.composante.clear(signature))
return signature return signature
@classmethod @classmethod