The Checkbutton widget is used to display a number of options to a user as toggle buttons. The user can then select one or more options by clicking the button corresponding to each option.
Source code:
from tkinter import *
root = Tk()
root.geometry("800x600")
var=StringVar()
#define the function of button click
def click():
Label1=Label(root,text=var.get()).pack()
ch_button=Checkbutton(root,text="Want a movie ticket?",variable=var,onvalue="yes",offvalue="no")
ch_button.deselect()
ch_button.pack()
Button1=Button(root,text="click me",command=click)
Button1.pack()
root.mainloop()
If you like the video don't forget to subscribe the channel
/ @minatipanda7456
To see the complete playlist Computer Science sample paper 2021-2022
click on the following link:
• CBSE SAMPLE PAPER - Solved 2021-22 | Class...
Link for sql tutorial
• My SQL Class XII
Link for Cross Join
• MYSQL COMMANDS|Part-31| Cartesian Product...
Link for Aggregate functions
• MYSQL COMMANDS | Part - 6 | Aggregate Func...
Link for GROUP BY Clause
• MYSQL COMMANDS | Part -21| SQL GROUP BY CL...
Link for tkinter tutorial
• TKINTER GUIs IN PYTHON | Displaying Images...
Link for file handling
• Data File Handling |Writing and Reading in...
Link for Term1 practical file
• Term1 Practical file
Link for Tuple-class XI
• Tuples
Link for class XI videos
• CLASS XI COMPUTER SCIENCE
Link for Python Projects
• Python Projects
Link for class XII videos
• Class XII Computer Science
Link for Data Structures in Python
• Data Structures -II
Link for Lists in Python
• Data Structures Linear List
Link for Data Representation
• Data Representation Class XI
Link for Computer System Overview ch-1 class -XI
• Computer System Overview Class XI Computer...
Link for Working with Functions-
• Working with Function Class XII
Music: Birthday
Musician: LiQWYD
URL: / liqwyd
tkinter,python tkinter,tkinter library,tkinter course,tkinter tutorial,user interface,good tkinter application,graphic user interface,graphical user interface,gui software,how to program a tkinter application,mainloop,ui design,create gui,python project for beginners,gui program,application,programming,python file,extract text from pdf,gui,python project,how to program,command prompt,gui application,atom,create python gui,python programming