a = tk.Label(win, text="hello world") a.pack() tk.Button(win, text="Change Label Text", command=changetext).pack() win.mainloop()
確定! 回上一頁