Learn Before
Code

Checkboxe code example

import tkinter as tk from tkinter import * window = tk.Tk() window.title("1Cademy") window.geometry("350x100") var = IntVar() def check_info(): if var.get() == 1: tk.Label(text="Thank you").pack() else: tk.Label(text="Its not checked").pack() c = tk.Checkbutton(text="Check this box", variable=var).pack() btn = tk.Button(text="Submit", command=check_info).pack() window.mainloop()
Image 0

0

1

Updated 2021-05-25

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science