# L-30 MCS 260 Mon 5 Nov 2007 : usegrid.py # # Use of the geometry manager grid. from Tkinter import * top = Tk() top.title("use of grid") t1 = Label(top,text=" text 1 ") t1.grid(row=0,column=4) b0 = Button(top,text=" button 0 ") b0.grid(row=0,column=1,sticky=W+E+N+S) b1 = Button(top,text=" button 1 ") b1.grid(row=1,column=1,columnspan=4,sticky=W+E+N+S) e1 = Entry(top) e1.insert(INSERT,"entry 1 ") e1.grid(row=2,column=0,columnspan=2) b2 = Button(top,text = "button 2 ") b2.grid(row=2,column=3) top.mainloop()