Re: [Tkinter-discuss] Centering grid inside a frame

2015-06-25 Thread Bryan Oakley
Use an empty row and column surrounding your other widgets, and give those rows and columns a weight. That is, leave row and column 0 empty, and the row and column below and to the right of all the other widgets empty. With a non-zero weight, and with the non-empty rows/columns with a default weigh

[Tkinter-discuss] Centering grid inside a frame

2015-06-25 Thread Vasilis Vlachoudis
Hi all, I want to centre a grid layout (with fixed size) inside a frame e.g. if I do the following tk = Tk() Button(tk, text="button1").grid(row=0, column=0, sticky=NSEW) Button(tk, text="button2").grid(row=0, column=1, sticky=NSEW) Button(tk, text="button3").grid(row=1, column=0, sticky=NSEW) Bu