Blacken the code base.
This commit is contained in:
parent
d585c1529d
commit
07d079f204
19 changed files with 138 additions and 168 deletions
|
|
@ -22,11 +22,11 @@ class SS(dcc.doom_base.WadMap):
|
|||
height = self.thumbnail_height
|
||||
with wand.image.Image(width=width, height=height, pseudo="x:") as img:
|
||||
img.reset_coords()
|
||||
if (img.width < width or img.height < height):
|
||||
if img.width < width or img.height < height:
|
||||
if not messagebox.askretrycancel(
|
||||
title="DCC",
|
||||
message=f"Image too small ({img.width}x{img.height})." +
|
||||
"Try again?"
|
||||
message=f"Image too small ({img.width}x{img.height})."
|
||||
+ "Try again?",
|
||||
):
|
||||
sys.exit("Gave up trying to select an image.")
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue