我想把一个图像放在一个tkinter按钮上,但它看不到工作。在
root.geometry('512x512')
vbuckimage = tkinter.PhotoImage(file='vbuckicon.gif')
#vbucks button
vbucksButton = tkinter.Button(root,image=vbuckimage,height=5,width=10)
vbucksButton.place(x=256,y=256)
root.mainloop()
图像与.py文件位于同一位置
Tags:
你似乎和here有同样的问题 尝试以下解决方案:
相关问题 更多 >
编程相关推荐