Options

The arc item supports the following options, via the create_arc method, and the itemconfig and itemcget configuration methods.

Table 13-1. Canvas Arc Options

Option

Type

Description

style

constant

Specifies how to draw the arc item (see above). Use one of PIESLICE, CHORD, or ARC. The default is PIESLICE.

These constants are not defined in Python 1.5.2 and earlier. For compatibility, use the strings "pieslice", "chord", and "arc" instead.

start, extent

angle

The arc is drawn from the start angle (measured counter-clockwise from three o'clock) to the start angle plus the extent. Both angles are given in degrees, and can be negative.

By default, the arc starts at 0.0 degrees (three o'clock), and extends 90.0 degrees counter-clockwise (twelve o'clock).

fill

color

The color to use for the arc's interior. If an empty string is given, the interior is not drawn. Note that arc's having the arc style cannot be filled. Default is empty (transparent).

stipple

bitmap

The name of a bitmap which is used as a stipple brush when filling the arc's interior. Typical values are "gray12", "gray25", "gray50", or "gray75". Default is a solid brush (no bitmap).

As of Tk 8.0p2, the stipple option is ignored on the Windows platform. To draw stippled pieslices or chords, you have to create corresponding polygons.

outline

color

The color to use for the arc's outline. If an empty string is given, the outline is not drawn. Default is "black".

outlinestipple

bitmap

The name of a bitmap which is used as a stipple brush when drawing the arc's outline. Typical values are "gray12", "gray25", "gray50", or "gray75". Default is a solid brush (no bitmap).

width

distance

The width of the arc's outline. Default is 1 pixel.

tags

tuple

One or more tags to associate with this item. If only a single tag is to be used, you can use a single string instead of a tuple of strings.