Python Tkinter button Image

img = PhotoImage(file='not_not.jpg')

main_button = Button(root, image=img, command=open_level_menu, fg="white", bg="black",)

Here is what the above code is Doing:
1. We’re creating a button that will open the level menu.
2. We’re setting the button’s image to the not_not.jpg image.
3. We’re setting the button’s command to open_level_menu.
4. We’re setting the button’s foreground color to white.
5. We’re setting the button’s background color to black.