Apr-25-2020, 12:57 PM
If you used themed tk buttons (ttk.Button) you can set padding. You can also set width if the the top/bottom margins look good but the button is too wide.
import tkinter as tk import tkinter.ttk as ttk root = tk.Tk() ttk.Button(root, text='Text').grid(row=0, column=0) ttk.Button(root, text='Text', padding=5).grid(row=1, column=0) ttk.Button(root, text='Text', padding=-5).grid(row=2, column=0) ttk.Button(root, text='Text', width=4).grid(row=3, column=0) tk.mainloop()