# A starter program for Python with Tkinter

from tkinter import * # import Tkinter library
# from tkinter.ttk import Progressbar
# from tkinter import Menu
from ttkthemes import ThemedTk
window = ThemedTk(theme="arc")         # Create the application window

# Add a label with the text "Hey"
lbl = Label(window, text="Hello", font=("Arial Bold", 50))
score = 0

def addToScore():
  message = txt.get()
  if message == "Jon":
    lbl['text'] = "go away"
  else:
    lbl['text'] = "hello"

# Add a label with the text "Hello"
lbl = Label(window, text=score, font=("Arial Bold", 50))
lbl.grid(column=0, row=0)
firstLabel = Label(window, text = "This is a label") 
firstLabel.grid(column=4, row=3)                         
txt = Entry(window,width=10)
txt.grid(column=1, row=0)
btn = Button(window, text="Click Me")
btn.grid(column=4, row=0)
chk_state = BooleanVar()
 
chk_state.set(True) #set check state
chk = Checkbutton(window, text='Choose', var=chk_state)
chk.grid(column=4, row=0)
btn.grid(column=5, row=0)

# style = ttk.Style() 
# style.theme_use('default')
# style.configure("black.Horizontal.TProgressbar", background='black') 
# bar = Progressbar(window, length=200, style='black.Horizontal.TProgressbar') 
# bar['value'] = 70 
# bar.grid(column=6, row=1)

# menu = Menu(window) 
# new_item = Menu(menu) 
# new_item.add_command(label='New')
# menu.add_cascade(label='File', menu=new_item)
# window.config(menu=menu)

spin = Spinbox(window, from_=0, to=100, width=4) 
spin.grid(column=4,row=4)


btn = Button(window, text="Click", command=addToScore)
btn.grid(column = 0 , row = 1)

txt = Entry(window,width=10)
txt.grid(column=1, row=0)



window.mainloop()     # Keep the window open


