pythonware.com products ::: library ::: search ::: daily Python-URL!
   

Options

Back   Next   

 Options

The text item supports the following options, via the create_text method, and the itemconfig and itemcget configuration methods.

Table 21-1. Canvas Text Options

Option

Type

Description

anchor

constant

Specifies which part of the text (the text's bounding box, more exactly) that should be placed at the given position. Use one of N, NE, E, SE, S, SW, W, NW, or CENTER. Default is CENTER.

fill

color

The color to use for the text. If an empty string is given, the text is not drawn. Default is empty (transparent).

font

font

justify

constant

stipple

bitmap

tags

tuple

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

text

string

The text string.

width

distance

Back   Next