How to remove blue border of a button in tkinter on macOS? How to remove blue border of a button in tkinter on macOS? tkinter tkinter

How to remove blue border of a button in tkinter on macOS?


From @Saad answer I have solved my issue and completely removed the focus button border. Just configure takefocus as 0.

import tkinter as tkimport tkmacosx as tkmroot = tk.Tk()tkm.Button(root, text='Submit', bg='#ADEFD1', borderless=1, takefocus=0).pack()root.mainloop()


On macOS Big Sur (11.0.1)

  • takefocus=0 doesn't work

  • focuscolor='' works perfectly.