程式語言 - Python - Tkinter - Hello, world!



參考資訊:
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