參考資訊: https://www.pythontutorial.net/tkinter/tkinter-window/ main.py
import tkinter as tk root = tk.Tk() root.title('Hello, world!') root.geometry('300x300') root.mainloop()
執行
$ python3 main.py