Im trying to create a home page with multiple buttons with this layout:layout of my design
With my code below the buttons seem to always stick to the left no matter what I do. Anyone have any fixes for this?
from tkinter import *
home = Tk()
home.title("Home Page")
home.geometry('1200x900') #creates dimensions of page
home.resizable(0,0) #will disable max/min tab of window
#seperating the page into sections
header = LabelFrame(home, bg="#12a8e3")
content = LabelFrame(home, bg="white")
home.columnconfigure(0, weight=1) # 100%
home.rowconfigure(0, weight=2) # 2%
home.rowconfigure(1, weight=98) # 98%
#creating the title of the page to be displayed in the header
title = Label(header, text="School Subjects Quiz", bg="#12a8e3", fg="white", font=("Ariel",35, "bold"), padx=10, pady=10)
title.pack(expand=TRUE)
questionsButton = Button(content, text="Questions", padx=250, pady=150)
questionsButton.grid(row=0, column=0, columnspan=3, padx=50, pady=50)
accountButton = Button(content, text="Account", padx=150, pady=150)
accountButton.grid(row=1, column=0, padx=50, pady=50)
resourceButton = Button(content, text="Revision Resources", padx=150, pady=150)
resourceButton.grid(row=1, column=2, padx=50, pady=50)
header.grid(row=0, sticky='news')
content.grid(row=1, sticky='news')
home.mainloop()