程式語言 - Python - Tkinter - CheckButton



參考資訊:
https://tkdocs.com/shipman/
https://www.pythontutorial.net/tkinter/tkinter-window/

main.py

import tkinter as tk
   
root = tk.Tk()
root.title('main')
root.geometry('300x300')
 
chk = tk.Checkbutton(root, text = 'test', font = ('Monospace', 14))
chk.pack()
  
root.mainloop()

執行

$ python3 main.py