I am trying to create a GUI for displaying data in a way that the user can flip through pages using the page buttons on the bottom (page 1, 2, 3, etc.) The problem is currently the entire window I made has two columns of equal width. If I add buttons that say "1" "2" "3" "4" they get spread out in the two columns. I tried the sticky option but that still doesn't look right. I want the four buttons placed right next to each other in the middle of the bottom of my window. Is there some way I can do this without having to change the number of columns above?
I tried creating a frame and trying to see if I could fit more columns in that frame, but it ends up just adding those columns to the right of the other two columns.
fr=tk.Frame(master).grid(row=23,column=0, rowspan=1, columnspan=4)
b=tk.Button(fr,text='1',command=page1)
b.grid(row=23, column=1, sticky=tk.W)
b1=tk.Button(fr,text='2', command=page2)
b1.grid(row=23, column=1, sticky=tk.E)
b2=tk.Button(fr,text='3', command=page3)
b2.grid(row=23, column=2, sticky=tk.W)
b3=tk.Button(fr,text='4', command=page4)
b3.grid(row=23, column=2, sticky=tk.E)