0
votes

I have to program this application for one of my CS classes and I'm stumped attached is the code the radio buttons need to go horizontally when I use the .grid() it gives me the error the slaves are already managed by .pack() so I can't use .grid()

        self.label_name = Label(self.frame_name, text='Age')
        self.entry_name = Entry(self.frame_name)
        self.label_name.pack(padx=5, side='left')
        self.entry_name.pack(padx=15, side='left')
        self.frame_name.pack(anchor='w', pady=10)
        
        status_options = ["Student", "Staff", "Both"]
        x = IntVar()
        
        def clicked(self):
            print('helloworld')
            
        for index in range(len(status_options)):
            statusBar = Radiobutton(text=status_options[index],variable=x,value=index,padx=5).pack()
        buttonSave = Button(text="SAVE", command = clicked(self))
        buttonSave.pack(anchor='w', padx=75)
That is accurate information. What is your question? You already used the pack() method so now you cant just start using grid(). Why not just change to grid() for the other widgets? - Rory