我正在python中开发一个软件,我需要创建2个按钮。我用相同的代码创建了这个按钮,但是第二个的图像是空白的,而第一个不是。这是代码:
picModificaClienti = PhotoImage(file='ModificaClienti.png')
ModificaClientiButton = Button(ClientiWindow, text='', image=picModificaClienti, width=150, height=60, command = ModificaClientiWindowF)
ModificaClientiButton.place(x=270, y=120)
picAnnullaClientiOP = PhotoImage(file = "AnnullaButton.png")
AnnullaClientiButton = Button(ClientiWindow, text='', image=picAnnullaClientiOP, width=150, height=60, command = ModificaClientiWindowF)
AnnullaClientiButton.place(x=480, y=120)