I have been messing around with tkinter in the newest version 3.10.4 and have noticed that when you use a special font on a button that it loses the rounding. How do I use a special font while keeping it round?
Code:
fromtkinterimport*window=Tk()
Button(window, text="Example", font=("Courier New bold", 15)).pack()
window.mainloop()
Image:
Your environment
CPython versions tested on: Python 3.10.4
Operating system and architecture: MacOSX
The text was updated successfully, but these errors were encountered:
Tkinter is a relatively thin wrapper around the Tk library. Use the Tk bug tracker to file a report.
I guess that Tk uses native macOS buttons if it can. But when you specify the font, it falls back to different implementation, because native macOS buttons do not support non-standard font.
Bug report
I have been messing around with tkinter in the newest version 3.10.4 and have noticed that when you use a special font on a button that it loses the rounding. How do I use a special font while keeping it round?
Code:
Image:
Your environment
The text was updated successfully, but these errors were encountered: