Tkinter入门
前页 |  | 后页

# Chapter 20. The Canvas Rectangle Item

# 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.

前页 | Home | 后页
Options | Up | Options