I can not create an image in the right window, it will stop in the first window

0

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()

    
asked by anonymous 01.06.2018 / 20:37

0 answers