I'm trying to make a square-shaped board, something like this:
from Tkinter import *
root = Tk()
w=[]
for k in range(9):
i=k/3
j=k%3
w.append(Label(root,text=str(k),bg="red",width=5,height=5))
w[k].grid(row=i,column=j,padx=2,pady=2,ipadx=5,ipady=5)
mainloop()
It shows up on my screen as rectangular (non-square) shaped. What do I have
to do to make it appear in a square-shaped form (i.e. with Label height &
width to be equal on the sceen)?
--
View this message in context:
http://old.nabble.com/Widget-to-appear-square-shaped-on-screen...-tp29216127p29216127.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.
_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss