Larger boxes ; avoid feedback on confusing letters
This commit is contained in:
@@ -8,8 +8,8 @@ import img2pdf
|
||||
from reportlab.pdfgen import canvas
|
||||
|
||||
# Fix for Matplotlib in threads: Set backend to non-interactive 'Agg'
|
||||
import matplotlib
|
||||
matplotlib.use('Agg')
|
||||
# import matplotlib
|
||||
# matplotlib.use('Agg')
|
||||
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
import annotating
|
||||
@@ -19,7 +19,7 @@ from annotating import MARGIN_LEFT, ANNOT_WIDTH
|
||||
LATEX_LOCK = threading.Lock()
|
||||
DPI = 100
|
||||
BOX_SIZE = 30
|
||||
SCORE_BOX_SIZE = 30
|
||||
SCORE_BOX_SIZE = 40
|
||||
SCORES = [x * 0.5 for x in range(9)] # 0.0 to 4.0
|
||||
|
||||
try:
|
||||
@@ -60,12 +60,13 @@ class CheckboxRenderer:
|
||||
# Draw score boxes
|
||||
start_x = pos['w'] + 20
|
||||
for val in SCORES:
|
||||
box = draw_checkbox(draw, start_x, pos['y'] + 25, BOX_SIZE, str(val))
|
||||
box = draw_checkbox(draw, start_x, pos['y'] + 25,
|
||||
SCORE_BOX_SIZE, str(val))
|
||||
self.checkboxes.append({
|
||||
"type": "score", "label": self.label, "value": val,
|
||||
"rel_box": box # Will be adjusted for global Y later
|
||||
})
|
||||
start_x += BOX_SIZE + 60
|
||||
start_x += SCORE_BOX_SIZE + 60
|
||||
elif meta.get("type") == "global_fb":
|
||||
# Draw delete box for global feedback
|
||||
bx = pos['w'] - BOX_SIZE - 5
|
||||
|
||||
Reference in New Issue
Block a user