PEP 8 compliance.
This commit is contained in:
parent
b56b0419e2
commit
35894c2614
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,7 @@ import wand.drawing
|
||||||
import wand.image
|
import wand.image
|
||||||
|
|
||||||
|
|
||||||
def draw_text(self, img, text, font_size=64):
|
def draw_text(self, img, text, font_size=64):
|
||||||
with wand.drawing.Drawing() as draw:
|
with wand.drawing.Drawing() as draw:
|
||||||
draw.font = self.thumbnail_font
|
draw.font = self.thumbnail_font
|
||||||
draw.font_size = font_size
|
draw.font_size = font_size
|
||||||
|
@ -20,8 +20,10 @@ def draw_text(self, img, text, font_size=64):
|
||||||
draw.text(5, int(draw.font_size)+5, text)
|
draw.text(5, int(draw.font_size)+5, text)
|
||||||
draw(img)
|
draw(img)
|
||||||
|
|
||||||
|
|
||||||
dcc.config.Base.draw_text = draw_text
|
dcc.config.Base.draw_text = draw_text
|
||||||
|
|
||||||
|
|
||||||
class Text(dcc.doom_base.WadMap):
|
class Text(dcc.doom_base.WadMap):
|
||||||
def get_parser(self, prog_name):
|
def get_parser(self, prog_name):
|
||||||
parser = super().get_parser(prog_name)
|
parser = super().get_parser(prog_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue