from tkinter import *
root = Tk()
# Creating function for button
def myClick():
myLabel = Label(root, text="Look! I clicked a button")
myLabel.pack()
# Defining a button
myButton = Button(root, text="Click ME!", command=myClick)
myButton.pack()
root.mainloop()