Grid made by the Label with Raised border : Table Grid « GUI Tk « Python






Grid made by the Label with Raised border

Grid made by the Label with Raised border

# simple 2d table

from Tkinter import *

for i in range(5):
    for j in range(4):
        l = Label(text='%d.%d' % (i, j), relief=RIDGE)
        l.grid(row=i, column=j, sticky=NSEW)

mainloop()

           
       








Related examples in the same category

1.Grid made by Label and EntryGrid made by Label and Entry
2.Grids on two windowsGrids on two windows
3.2d table of input fields2d table of input fields
4.Grid layout manager demonstration.Grid layout manager demonstration.