I am trying to set up the frame of my program. So nothing has a function just yet. I am trying to make all of the radio buttons underneath the search label be formatted across the 2 columns neatly, so that it lines up with the 2 columns above. I will insert a photo of my wireframe. I believe it may be because there is not enough room for all of the radio buttons, but I don't know how to format the above rows in the column to do so. Thank youuuu
Here is my code:
#Component 1 - create the rating frame
from tkinter import *
class MovieRaterGUI:
def __init__(self, parent):
#variable set up
self.v = StringVar()
self.v.set(" ")
#titles
self.movie_label = Label(text = "Please Rate:", borderwidth = 10)
self.movie_label.grid(row = 0, column = 0, sticky = W)
self.current_movie = Label(text = "The Hobbit", borderwidth = 10)
self.current_movie.grid(row = 0, column = 1, sticky = W)
self.rating_label = Label(text = "Your rating:", borderwidth = 10)
self.rating_label.grid(row = 1, column = 0, sticky = W)
self.search_label = Label(text = "Search for movies with a rating of:", borderwidth = 10)
self.search_label.grid(row = 8, column = 0, columnspan = 2)
movies = ["No Rating", "Forget it", "2", "3", "4", "Must See"]
#making radiobuttons
for i in range(len(movies)):
options = Radiobutton(variable = self.v, value = i, text = movies[i], borderwidth = 10)
options.grid(row = i+1, column = 1, sticky = W)
for i in range(len(movies)):
options = Radiobutton(variable = self.v, value = i, text = movies[i])
options.grid(row = 9, column = i, columnspan = 2, sticky = W)
i+=1
next_btn = Button(parent, text = "Next", borderwidth = 10)
next_btn.grid(row = 7, column = 1, sticky = W)
previous_btn = Button(parent, text = "Previous", borderwidth = 10)
previous_btn.grid(row = 7, column = 0, sticky = W)
show_btn = Button(parent, text = "Show", borderwidth = 10)
show_btn.grid(row = 10, column = 0, columnspan = 2)
if __name__ == "__main__":
root = Tk()
root.title("Movie Ratings")
radiobuttons = MovieRaterGUI(root)
root.mainloop()
Here is the output:
Here is my wireframe of what I would like it to look like:
Also, if anybody knows why there is only a border on the first radio button the first time I show these radio buttons, that would be much appreciated. :)


