I'm writing a python program and i need 2 windows to show up. But when i run the code the 2nd window doesn't show my custom icon. Does anybody know why this is? The code is bellow
from tkinter import *
root = Tk()
root.geometry("1200x730")
root.title("NoteWork")
img = Image("photo", file="assets/icon.png")
root.call("wm","iconphoto", root._w, img)
# functions
def options():
op_win = Tk()
op_win.geometry("600x500")
op_win.title("Options")
img2 = Image("photo", file="assets/icon.png")
root.call("wm","iconphoto", op_win._w, img2)
op_win.mainloop()
btn1 = Label(root, text="Options", command=options)
btn.pack(pady=20)
root.mainloop()