tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code09:36

Learn Python tkinter GUI checkboxes easy ✔️

Bro Code ↗

From the creator

Python checkbox checkbutton tkinter GUI tutorial for beginners #Python #checkbox #checkbutton #tkinter #GUI #tutorial #beginners from tkinter import * def display(): if(x.get()==1): print("You agree!") else: print("You don't agree :(") window = Tk() x = IntVar() python_photo = PhotoImage(file='Python.png') check_button = Checkbutton(window, text="I agree to something", variable=x, onvalue=1, offvalue=0, command=display, font=('Arial',20), fg='#00FF00', bg='black', activeforeground='#00FF00', activebackground='black', padx=25, pady=10, image=python_photo, compound='left') check_button.pack() window.mainloop()

Published 2020-09-22 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code