Skip to content

Commit

Permalink
add image in button
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio0410 committed Dec 21, 2022
1 parent 5f75ac2 commit 4a264dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified gui/elements/button_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gui/elements/button_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def select_file():
listbox.place(x=550.0, y=130.0, width=200.0, height=150.0)

#Remove button, on click remove a path from the listbox-
remove_button_image = PhotoImage(file=relative_to_assets("button_1.png"))
remove_button = Button(image=remove_button_image, borderwidth=0, highlightthickness=0, command=select_file, relief="flat")
remove_button_image = PhotoImage(file=relative_to_assets("button_3.png"))
remove_button = Button(image=remove_button_image, borderwidth=0, highlightthickness=0, command=lambda: print("delete"), relief="flat")
remove_button.place(x=550.0, y=310.0, width=200.0, height=50.0)


Expand Down

0 comments on commit 4a264dd

Please sign in to comment.