I have button widigets grided to a frame then the frame is packed to the screen. The buttons are added with an image of 1x1 pixle thewn use width=121 but when on screen they take up more space than the set width?
root.geometry("363x250")
pixel = PhotoImage(width=1, height=1)
buttonOptions = Button(buttonFrame, text='Settings',image=pixel, width=121,padx=0, height=30,compound = 'c', command=None)
buttonNextQuestion = Button(buttonFrame,image=pixel, height=30, width=121,padx=0,compound = 'c', text="Next Question", command=None)
buttonPreviousQuestion = Button(buttonFrame,image=pixel, height=30, width=121,padx=0,compound = 'c', text="Previous Question", command=None)
buttonCheckAnswer = Button(buttonFrame,image=pixel, height=30, width=121,padx=0,compound = 'c', text="CheckAnswer", command=lambda: checkAnswerFunction())
buttonOptions.grid(row=0, column=0)
buttonCheckAnswer.grid(row=0, column=1)
buttonNextQuestion.grid(row=0, column=2)
displayedFrame = radioButtonFrame
buttonFrame.grid(row=0, column=0)
displayedFrame.grid(row=1, column=0)