treating the container like a grid The main window is available from the Tk() method: import tkinter as tk root=tk.Tk() root.title('Example Program') button=tk.Button(root, text="Goodbye!", ...