我是Python新手,当然这有一个简单的答案。非常感谢您的帮助,这是我的代码:)
def Button1B():
if button1['image'] == play:
button1['image'] = loop
play=PhotoImage(file="play.png")
loop=PhotoImage(file="loop.png")
button1=Button(frame, image=play, bg="#292929", bd=0, activebackground="#292929", cursor="hand2", command=Button1B)
button1.place(x=15, y=450)
请参考此代码并将其更改为您的样式:
这是输出:
相关问题 更多 >
编程相关推荐