how to create checkbox in tkinter

  tkinter

Email

from tkinter import *


root = Tk()
root.geometry("600x600")
lable1= Label(root, text="Email")
lable1.grid(row=0,sticky='e')

lable1= Label(root, text="Password")
lable1.grid(row=1)
check = Checkbutton(root,text="Remember me")

button = Button(root,text="submit")
check.grid(column=1)
button.grid(column=0)


entry1  = Entry(root)
entry2 = Entry(root)
entry1.grid(row=0, column=1)
entry2.grid(row=1,column=1)


root.mainloop()
Spread the Code

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of