Skip to content
Snippets Groups Projects
Commit 1ff558bf authored by Ruben Young On's avatar Ruben Young On
Browse files

Fixed lint_py warnings

parent 202a17b8
Branches
No related tags found
1 merge request!15Refactorings and compatibility fix
Pipeline #17870 passed
...@@ -173,13 +173,13 @@ def generate_checkbox(canvas, x, y, label): ...@@ -173,13 +173,13 @@ def generate_checkbox(canvas, x, y, label):
margin = 5 # Margin between elements and sides margin = 5 # Margin between elements and sides
markboxsize = fontsize - 2 # Size of checkboxes boxes markboxsize = fontsize - 2 # Size of checkboxes boxes
x_label = x + 1 # location of the label 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 box_y = y - markboxsize
# check that there is a label to print # check that there is a label to print
if (label and not (len(label) == 0)): if (label and not (len(label) == 0)):
canvas.setFont('Helvetica', fontsize) canvas.setFont('Helvetica', fontsize)
canvas.drawString(x_label, y_label, label[0]) 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.lines([ (x, y, x +15, y), (x, y, x, y +15)])
canvas.rect(x, box_y, markboxsize, markboxsize) canvas.rect(x, box_y, markboxsize, markboxsize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment