How to make a tkinter canvas rectangle with rounded corners?
问题 I would like to create a rectangle with rounded corners. I'm using canvas from tkinter. 回答1: Offering an alternate approach to tobias's method would be to indeed do it with one polygon. This would have the advantage of being one canvas object if you are worried about optimization, or not having to worry about a tag system for referring to a single object. The code is a bit longer, but very basic, as it is just utilizing the idea that when smoothing a polygon, you can give the same coordinate