Re: [Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-21 Thread GKalman
Thanks to all. They were very useful. ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss -- View this message in context: http://old.nabble.com/Widget-to-appear-square-shaped-on-scree

Re: [Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-21 Thread Michael Lange
Hi, On Tue, 20 Jul 2010 14:55:51 -0300 Roberto Gomez wrote: > GKalman wrote: > > 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=st

Re: [Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-21 Thread Roberto Gomez
GKalman wrote: 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(

Re: [Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-20 Thread Wayne Werner
On Tue, Jul 20, 2010 at 12:00 PM, GKalman wrote: > > 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,co

[Tkinter-discuss] Widget to appear square-shaped on screen...

2010-07-20 Thread GKalman
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