PEP 8 compliance.
This commit is contained in:
parent
84b8c1b626
commit
2076e7341d
1 changed files with 32 additions and 28 deletions
|
@ -3,6 +3,7 @@ import sys
|
|||
import wand.drawing
|
||||
import wand.image
|
||||
|
||||
|
||||
def draw_text(img, text, font_size=64):
|
||||
with wand.drawing.Drawing() as draw:
|
||||
draw.font = dcc.config.FONT
|
||||
|
@ -31,7 +32,10 @@ class Text(dcc.doom_base.WadMap):
|
|||
if not parsed_args.nomap:
|
||||
text = "MAP{}: {}".format(parsed_args.map, text)
|
||||
text = "{}\n{}".format(text, parsed_args.demotype)
|
||||
with wand.image.Image(height=dcc.config.THUMB_HEIGHT,width=dcc.config.THUMB_WIDTH) as img:
|
||||
with wand.image.Image(
|
||||
height=dcc.config.THUMB_HEIGHT,
|
||||
width=dcc.config.THUMB_WIDTH
|
||||
) as img:
|
||||
draw_text(img, text)
|
||||
img.trim()
|
||||
img.reset_coords()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue