我已经看到了这个Python Tkinter - Set Entry grid width 100% and this columnspan in grid options does't function(这更有用)但无法弄清楚如何让我的“重新绘制”按钮填充它的行宽在。无论我将小部件的列跨度设置为什么,它都不会改变按钮的宽度。该按钮与其他小部件位于一个框架中,该行上没有其他内容。
用于按钮的代码:
button_quit2 = tk.Button(root, text = "Replot", command = rangesReplot, relief = tk.GROOVE, padx =30, pady =20 )
button_quit2.grid(row = 10, column = 0, columnspan=2)