The Checkbutton widget
import tkinter as tk from tkinter import ttk parent = tk.Tk() my_boolean_var = tk.BooleanVar() my_checkbutton = ttk.Checkbutton( text="Check to make this option True", variable=my_boolean_var ) my_checkbutton.pack() parent.mainloop()
Recent Comments