4.5 and clear checkboxes

This commit is contained in:
2026-03-28 15:52:13 +01:00
parent f9d43e3ad9
commit 8a1eea6b3b
3 changed files with 26 additions and 2 deletions
+10 -2
View File
@@ -20,7 +20,7 @@ LATEX_LOCK = threading.Lock()
DPI = 100
BOX_SIZE = 30
SCORE_BOX_SIZE = 40
SCORES = [x * 0.5 for x in range(9)] # 0.0 to 4.0
SCORES = [x * 0.5 for x in range(10)] # 0.0 to 4.5
try:
CHECKBOX_FONT = ImageFont.truetype("DejaVuSans.ttf", 20)
@@ -66,7 +66,15 @@ class CheckboxRenderer:
"type": "score", "label": self.label, "value": val,
"rel_box": box # Will be adjusted for global Y later
})
start_x += SCORE_BOX_SIZE + 60
start_x += SCORE_BOX_SIZE + 45
start_x += SCORE_BOX_SIZE + 60
box = draw_checkbox(draw, start_x, pos['y'] + 25, SCORE_BOX_SIZE, "clr")
self.checkboxes.append({
"type": "clear_all", "label": self.label,
"rel_box": box
})
elif meta.get("type") == "global_fb":
# Draw delete box for global feedback
bx = pos['w'] - BOX_SIZE - 5