Skip to content

Commit

Permalink
Ran formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jaythebusinessgoose committed Dec 17, 2024
1 parent 02d82ae commit 4953c55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modlunky2/ui/levels/warm_welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ def __init__(self, parent, on_open, *args, **kwargs):
self.img = Image.open(IMAGE_PATH / "leveleditor.png")
self.background_image = ImageTk.PhotoImage(self.img)

self.background_image_label = tk.Label(
main_frame, image=self.background_image
)
self.background_image_label = tk.Label(main_frame, image=self.background_image)

def resize_image(event):
new_width = event.width
Expand All @@ -37,7 +35,7 @@ def resize_image(event):
self.background_image_label.image = background_image

self.background_image_label.place(x=0, y=0, relwidth=1, relheight=1)
self.background_image_label.bind('<Configure>', resize_image)
self.background_image_label.bind("<Configure>", resize_image)

self.button_open = ttk.Button(main_frame, text="Open Editor", command=on_open)
self.button_open.grid(
Expand Down

0 comments on commit 4953c55

Please sign in to comment.