From 1ff558bf5e6ba330c5ff27b558bb957695f3ee72 Mon Sep 17 00:00:00 2001 From: Ruben Young On <r.d.youngon@student.tudelft.nl> Date: Thu, 23 May 2019 14:28:51 +0200 Subject: [PATCH] Fixed lint_py warnings --- zesje/pdf_generation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zesje/pdf_generation.py b/zesje/pdf_generation.py index ed4e5b2b..36572504 100644 --- a/zesje/pdf_generation.py +++ b/zesje/pdf_generation.py @@ -173,13 +173,13 @@ def generate_checkbox(canvas, x, y, label): margin = 5 # Margin between elements and sides markboxsize = fontsize - 2 # Size of checkboxes boxes x_label = x + 1 # location of the label - y_label = y + margin # remove fontsize from the y label since we draw from the bottom left up + y_label = y + margin # remove fontsize from the y label since we draw from the bottom left up box_y = y - markboxsize # check that there is a label to print if (label and not (len(label) == 0)): canvas.setFont('Helvetica', fontsize) canvas.drawString(x_label, y_label, label[0]) - #box_y = box_y - margin - fontsize + # box_y = box_y - margin - fontsize # canvas.lines([ (x, y, x +15, y), (x, y, x, y +15)]) canvas.rect(x, box_y, markboxsize, markboxsize) -- GitLab