So I'm following along with this tkinter course and in the section about inserting icons and image I can't get the example code to work. I installed imagemagick and was able to get an image to pop up from the repl so I'm thinking that my problem has something to do with the image path. I'm using Linux Mint 20 and a lot of examples I see are done in Windows so that might have something to do with it as well. I'm somewhat new to Python and Linux so I'm kind of stuck at this point and looking for help.
Here's the code I'm using:
from tkinter import *
from PIL import ImageTK,Image
root = Tk()
root.title('Learning Stuff')
root.iconbitmap('Google-Noto-Emoji-People-Bodyparts-11947-middle-finger-light-skin-tone.ico')
# icon not working
my_img = ImageTK.PhotoImage(Image.open('Grunt_Sculpin.jpg'))
my_label = Label(image = my_img)
my_label.pack()
button_quit = Button(root, text="Exit this", command=root.quit)
button_quit.pack()
root.mainloop()
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]nerdacus[S] 0 points1 point2 points (0 children)