# L-30 MCS 260 Mon 28 Mar 2016 : usegrid.py

"""
Use of the geometry manager grid.
"""

from tkinter import Tk, Label, Button, Entry
from tkinter import W, E, N, S, INSERT

TOP = Tk()
TOP.title("use of grid")
TX1 = Label(TOP, text=" text 1 ")
TX1.grid(row=0, column=4)
BT0 = Button(TOP, text=" button 0 ")
BT0.grid(row=0, column=1, sticky=W+E+N+S)
BT1 = Button(TOP, text=" button 1 ")
BT1.grid(row=1, column=1, columnspan=4, sticky=W+E+N+S)
EN1 = Entry(TOP)
EN1.insert(INSERT, "entry 1 ")
EN1.grid(row=2, column=0, columnspan=2)
BT2 = Button(TOP, text="button 2 ")
BT2.grid(row=2, column=3)
TOP.mainloop()
