Skip to content

Commit

Permalink
working lambda (whops)
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-loi committed Jan 5, 2023
1 parent bd79001 commit e75f2f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

fuser = ExposureFusion(perform_alignment=True, pyramid_levels=3, sigma=0.2)


def relative_to_assets(path: str) -> Path:
return ASSETS_PATH / Path(path)

Expand Down Expand Up @@ -48,11 +49,10 @@ def delete_file():

def execute_file():


images = [cv2.imread(elements) for elements in listbox.get(0, tk.END)]

fuser.align_images = bool(var1.get())

HDR = fuser(images)

if HDR is not None:
Expand Down Expand Up @@ -115,7 +115,7 @@ def execute_file():
# Execute button, on click execute the task-
execute_button_image = PhotoImage(file=relative_to_assets("button_2.png"))
execute_button = Button(image=execute_button_image, borderwidth=0,
highlightthickness=0, command=lambda x : execute_file(), relief="flat")
highlightthickness=0, command=lambda: execute_file(), relief="flat")
execute_button.place(x=550.0, y=490.0, width=200.0, height=50.0)


Expand Down

0 comments on commit e75f2f3

Please sign in to comment.