0
from tkinter import *
import time
root = Tk()
class Cycle(Frame):
def __init__(self):
Frame.__init__(self)
self.master.title("Cycle")
self.grid()
self.__pic1 = PhotoImage(file = "Bar.png")
self.__pic2 = PhotoImage(file = "bell.gif")
self.__pic1Label = Label(image = self.__pic1)
self.__pic2Label = Label(image = self.__pic2)
self.__pic1Label.grid(row=0, column=0)
time.sleep(1)
self.__pic2Label.grid(row=0, column=0)
Cycle()
而不是顯示第一個圖像,等待第二個,並顯示在第一個圖像上的第二個圖像,它等待一秒鐘,然後該框彈出並同時顯示兩個。在tkinter模塊中使用時間模塊
非常感謝:) – nedak96 2014-12-02 22:00:28