from tkinter import *
from PIL import ImageTk, Image
from tkinter import filedialog

root = Tk()
root.title("Checkbox")
root.iconbitmap('C:/Users/lenovo/PycharmProjects/LicentaSasu/Icon.ico')
root.geometry("500x500")

def showSelection():
    myLabel = Label(root, text=var.get()).pack()


#Pot sa pun pe checked si unchecked tot ce vreau eu ca valori
var = StringVar()
c = Checkbutton(root, text="Check this box", variable=var, onvalue="pizza", offvalue="Smac")
c.deselect()
c.pack()


myButton = Button(root, text="Show selection", command=showSelection).pack()


root.mainloop()


84ad94853820d1e29dac9aa75a813b68fd442733
<mask token>

<mask token>
root.title('Checkbox')
root.iconbitmap('C:/Users/lenovo/PycharmProjects/LicentaSasu/Icon.ico')
root.geometry('500x500')


def showSelection():
    myLabel = Label(root, text=var.get()).pack()


<mask token>
c.deselect()
c.pack()
<mask token>
root.mainloop()

<mask token>
root = Tk()
root.title('Checkbox')
root.iconbitmap('C:/Users/lenovo/PycharmProjects/LicentaSasu/Icon.ico')
root.geometry('500x500')


def showSelection():
    myLabel = Label(root, text=var.get()).pack()


var = StringVar()
c = Checkbutton(root, text='Check this box', variable=var, onvalue='pizza',
    offvalue='Smac')
c.deselect()
c.pack()
myButton = Button(root, text='Show selection', command=showSelection).pack()
root.mainloop()

from tkinter import *
from PIL import ImageTk, Image
from tkinter import filedialog
root = Tk()
root.title('Checkbox')
root.iconbitmap('C:/Users/lenovo/PycharmProjects/LicentaSasu/Icon.ico')
root.geometry('500x500')


def showSelection():
    myLabel = Label(root, text=var.get()).pack()


var = StringVar()
c = Checkbutton(root, text='Check this box', variable=var, onvalue='pizza',
    offvalue='Smac')
c.deselect()
c.pack()
myButton = Button(root, text='Show selection', command=showSelection).pack()
root.mainloop()

from tkinter import *
from PIL import ImageTk, Image
from tkinter import filedialog

root = Tk()
root.title("Checkbox")
root.iconbitmap('C:/Users/lenovo/PycharmProjects/LicentaSasu/Icon.ico')
root.geometry("500x500")

def showSelection():
    myLabel = Label(root, text=var.get()).pack()


#Pot sa pun pe checked si unchecked tot ce vreau eu ca valori
var = StringVar()
c = Checkbutton(root, text="Check this box", variable=var, onvalue="pizza", offvalue="Smac")
c.deselect()
c.pack()


myButton = Button(root, text="Show selection", command=showSelection).pack()


root.mainloop()

