Making Python code interact with people using tkinter GUI.
import tkinter as tk
from tkinter import ttk
## Create window
win = tk.Tk()
win.title('Python User Interface')
#win.minsize(500,500)
## Below line makes window fixed, not adjustable, maximize button also disable
#win.resizable(False,False)
## Add label
label_1 = ttk.Label(win,text='Show Temp.')
label_1.grid(column = 0, row = 0)
## function for button 1 action
def button1Action():
button1.configure(text = 'I have been clicked!')
label_1.configure(foreground = 'red')
label_1.configure(text = 'Hello there')
## Create button 1
button1 = ttk.Button(win, text = 'Click me..', command = button1Action)
button1.grid(column = 1, row = 0)
win.mainloop()

