I did this to test: img1 = Imagetk.Photoimage(Image.open('sss.png')) def test(): img2 = Imagetk.Photoimage(Image.open('ss.png')) tutu.configure(image=img2) tutu.image = img2 tutu = Button(image=img1, command=test) tutu.grid() I want after I click on the button it to switch to ss.png and then go back to his initial image to sss.png
What have you tried? There’s some code?
– Denis Rudnei de Souza
I did this to test: img1 = Imagetk.Photoimage(Image.open('sss.png')) def test(): img2 = Imagetk.Photoimage(Image.open('ss.png')) tutu.configure(image=img2) tutu.image = img2 tutu = Button(image=img1, command=test) tutu.grid() I want after I click on the button it to switch to ss.png and then go back to his initial image to sss.png
– Coelho