Grid made by the Label with Raised border

Submitted by:Jhon Smith

Date added:11 October, 2012

Category:Python

Python code example for Grid made by the Label with Raised border

Tags: grid , raised border

Code Snippet:

# 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()
 
 

Comments