from Tkinter import * class App: def __init__(self, root): fm = Frame(root, width=300, height=200, bg="blue") fm.pack(side=TOP, expand=NO, fill=NONE) root = Tk() display = App(root) root.mainloop()