Skip to content

Commit

Permalink
Run formatter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaythebusinessgoose authored and gmjosack committed Nov 19, 2023
1 parent b201d22 commit 7dea7e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def draw_canvas(self):

# Clear all existing images from the canvas before drawing the new images.
self.canvas.clear()
self.canvas.configure_size(width*10, height*8)
self.canvas.configure_size(width * 10, height * 8)

# Draw lines to fill the size of the level.
self.canvas.draw_background(theme)
Expand Down
6 changes: 2 additions & 4 deletions src/modlunky2/ui/levels/shared/level_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ def configure_size(self, width, height):
self.height = height
self["width"] = (self.zoom_level * width) - 3
self["height"] = (self.zoom_level * height) - 3
self.tile_images = [
[None for _ in range(width)] for _ in range(height)
]
self.tile_images = [[None for _ in range(width)] for _ in range(height)]

def draw_background(self, theme):
bg_img = self.cached_bgs.get(theme)
Expand Down Expand Up @@ -153,7 +151,7 @@ def draw_grid(self):
self.create_line(
0,
i * self.zoom_level,
self.zoom_level * (self.width+ 2),
self.zoom_level * (self.width + 2),
i * self.zoom_level,
fill="#F0F0F0",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ def load_full_preview(self):
logger.debug("Size found: %s", full_size)
level_height = int(full_size.split(", ")[1])
level_width = int(full_size.split(", ")[0])
self.full_level_preview_canvas.configure_size(level_width * 10, level_height * 8)
self.full_level_preview_canvas.configure_size(
level_width * 10, level_height * 8
)
self.full_level_preview_canvas.draw_background(self.lvl_biome)
self.full_level_preview_canvas.draw_grid()
else:
Expand Down

0 comments on commit 7dea7e7

Please sign in to comment.