Skip to content

Commit

Permalink
Fix parameters for pyse
Browse files Browse the repository at this point in the history
  • Loading branch information
jtemporal committed Apr 14, 2018
1 parent e2f2b89 commit 1abf180
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def __init__(self, x, y, text, size=8, font="Verdana",
width, wunit = re.findall('([\d\.]+)(.*)', template.width)[0]
height, hunit = re.findall('([\d\.]+)(.*)', template.height)[0]

y = 1075
x = 2490
y = 1155
x = 2202

with open('certificados.csv', 'r', encoding='utf-8') as csvfile:
iterador = iter(csv.reader(csvfile, delimiter=','))
Expand All @@ -79,28 +79,28 @@ def __init__(self, x, y, text, size=8, font="Verdana",
x, y - 60, "{}".format(nome),
size=130,
anchor="middle",
font="Flux",
font="Cooper Hewitt",
weight="bold",
color="#306a98",
color="#000000",
letterspacing=0
))
template.append(Text(
x, y + 50, "(Matrícula: {})".format(matricula),
size=100,
anchor="middle",
font="Flux",
font="Cooper Hewitt",
weight="bold",
color="#306a98",
color="#000000",
letterspacing=0
))
else:
template.append(Text(
x, y, nome,
size=150.6,
anchor="middle",
font="Flux",
font="Cooper Hewitt",
weight="bold",
color="#306a98",
color="#000000",
letterspacing=0
))

Expand Down

0 comments on commit 1abf180

Please sign in to comment.