Grid made by Label and Entry : Table Grid : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Table Grid »

 

Grid made by Label and Entry


Grid made by Label and Entry


from Tkinter import *
colors = ['red', 'green', 'orange', 'white', 'yellow', 'blue']

r = 0
for c in colors:
    Label(text=c, relief=RIDGE,  width=25).grid(row=r, column=0)
    Entry(bg=c,   relief=SUNKEN, width=50).grid(row=r, column=1)
    r = r+1

mainloop()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» Table Grid