If type is pieslice (the default) then the arc's region is defined by a section of the oval's perimeter plus two line segments, one between the center of the oval and each end of the perimeter section. If type is chord then the arc's region is defined by a section of the oval's perimeter plus a single line segment connecting the two end points of the perimeter section. If type is arc then the arc's region consists of a section of the perimeter alone. In this last case the fill option is ignored.
create_arc
方法就是您想要使用的方法。它以三种不同样式之一创建一个弧,由style
参数指定。这是official tcl/tk documentation描述style
选项的方式:下面是三种风格的一个例子:
我想这就是你要找的。在
正如@martineau所说,
create_arc()
是一种方法,但是理解tkinter的create_oval()
是至关重要的,因为弧是椭圆的一部分:上面的
style=tk.ARC
负责处理这个问题默认是一个饼图切片。在这段弧的端点如何终止与您的插图不一样。据我所知,tkinter的
capstyle
和joinstyle
选项对arc不可用。在相关问题 更多 >
编程相关推荐