-1
from tkinter import *
import time
frame = Tk()
frame.title("Blackjack")
canvas = Canvas(frame, width=600, height=400)
canvas.grid()
background = PhotoImage(file="taust.gif")
card1 = PhotoImage(file="kaart1.gif")
img = canvas.create_image(300, 200, image=background)
img2 = canvas.create_image(300, 300, image=card1)
time.sleep(5)
canvas.delete(img)
frame.mainloop()
我想顯示這兩個圖片,5秒後我想刪除一張圖片,並保留其他圖片。Python Tkinter圖片顯示
多虧了它的工作。 –