I'm doing a program with a 'HELP' button. When I click the 'help' button I would like a picture to appear inside the window it opens, however the photo will stop in the first window and not in the window it opens.
I can only make the photo appear in the new window when I close the first one and click the button again.
Could anyone help me?
Follow the code:
from tkinter import *
def comando_para_o_sub_menu1a():
janela = Tk()
def ajuda():
janela = Tk()
ajuda = PhotoImage(file="ajuda.png")
imagem_que_gostaria_que_aparecece_na_3_janela = Label(image=ajuda)
imagem_que_gostaria_que_aparecece_na_3_janela.place(x=0, y=0)
janela.mainloop()