実際のところ
import tkinter as tk def say_hello(): print("Hello, world!") root = tk.Tk() root.after(2000, say_hello) # 2秒後にsay_hello関数を呼び出す root.mainloop()
import tkinter as tk def say_hello(): print("Hello, world!") root = tk.Tk() root.after(2000, say_hello) # 2秒後にsay_hello関数を呼び出す root.mainloop()