
from tkinter import * 
  
root = Tk() 
root.geometry("300x200") 
  
w = Label(root, text ='checkbox widget', font = "50")  
w.pack() 
  
Checkbutton1 = IntVar()   
Checkbutton2 = IntVar()   
Checkbutton3 = IntVar() 
  
Button1 = Checkbutton(root, text = "1",  
                      variable = Checkbutton1, 
                      onvalue = 1, 
                      offvalue = 0, 
                      height = 2, 
                      width = 10) 
  
Button2 = Checkbutton(root, text = "2", 
                      variable = Checkbutton2, 
                      onvalue = 1, 
                      offvalue = 0, 
                      height = 2, 
                      width = 10) 
  
Button3 = Checkbutton(root, text = "3", 
                      variable = Checkbutton3, 
                      onvalue = 1, 
                      offvalue = 0, 
                      height = 2, 
                      width = 10)   
    
Button1.pack()   
Button2.pack()   
Button3.pack() 
  
mainloop()
