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

The Canvas Polygon Item

Back   Next   

 Chapter 19. The Canvas Polygon Item

Table of Contents
Methods
Options

 Methods

The following methods are used to create and configure polygon items:

create_polygon(xy, options...) => id, create_polygon(x0, y0, x1, y1, x2, y2, ..., xn, yn, options...) => id

Create a polygon item. You must specify at least 3 vertices when you create a new polygon.

delete(item)

Delete a polygonitem.

coords(item, x0, y0, x1, y1, x2, y2, ..., xn, yn)

Change the coordinates for one or more polygon items. Note that the coordinates must be given as separate arguments; you cannot use a sequence as with create_polygon.

itemconfigure(item, options...)

Change the options for one or more polygon items.

Back   Next