Chapter 19. The Canvas Rectangle Item

Table of Contents
Methods
Options

Methods

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

create_rectangle(x0, y0, x1, y1, options...) => id

Create a rectangle item between the given coordinates. The rectangle item is created with the given options.

delete(item)

Delete a rectangle item.

coords(item, x0, y0, x1, y1)

Change the coordinates for one or more rectangle items. The item argument can match one or more rectangle items, rectangles, or any other item taking exactly four coordinates.

itemconfigure(item, options...)

Change the options for one or more rectangle items.