# by ariana daney
# last modified november 15, 2019
# unit 8 daily exercises

from tkinter import *

root = Tk()

# ex. 1
# hello_world = Label(root, text="Hello, World")
# hello_world.grid(row=1, column=1)

# ex. 2


# def say_hi():
#     other_name = user_name.get()
#     your_name.set(other_name)
#     if other_name == "":
#         your_name.set("you forgot to enter to your name")
#     else:
#         your_name.set("hello," + other_name)
#
#
# your_name = StringVar()
# user_name = StringVar()
# entry_name = Entry(root, textvariable=user_name)
# entry_name.grid(row=1, column=1)
# say_hello = Button(root, text="Say Hello", command=say_hi)
# say_hello.grid(row=3, column=1)
# hello = Label(root, textvariable=your_name)
# hello.grid(row=2, column=1)


# ex. 3
degree_f = Label(root, text="degrees F:")
degree_f.grid(row=1, column=1)
degree_c = Label(root, text="degrees C:")
degree_c.grid(row=2, column=1)
f_input = Entry(root)
f_input.grid(row=1, column=2)
result = Label(root, text="0")
result.grid(row=2, column=2)
convert_button = Button(root, text="convert")
convert_button.grid(row=1, column=2, columnspan=2)
root.mainloop()
