#Button1.py from Tkinter import * # Create the root #(base) window where all widgets go root = Tk() # Make the window bigger root.geometry("200x100") # Create a label with words w = Label(root, text="Hello, world!") w.grid(row=0,column=0) # Put the label into the window # Create a button and put in the window myButton = Button(root, text="Exit") myButton.grid(row=0,column=1) root.mainloop() # Start the event loop