tkd.widget.canvas

Widget module.

Members

Classes

Canvas
class Canvas

Canvas widgets implement structured graphics. A canvas displays any number of items, which may be things like rectangles, circles, lines, and text. Items may be manipulated (e.g. moved or re-colored) and commands may be associated with items in much the same way that the bind command allows commands to be bound to widgets.

CanvasArc
class CanvasArc

A canvas arc item.

CanvasImage
class CanvasImage

An canvas image item.

CanvasItem
class CanvasItem

Abstract base class of all canvas items.

CanvasLine
class CanvasLine

A canvas line item.

CanvasOval
class CanvasOval

A canvas oval item.

CanvasPolygon
class CanvasPolygon

A canvas polygon item.

CanvasRectangle
class CanvasRectangle

A canvas rectangle item.

CanvasTagConfig
class CanvasTagConfig

Class representing a tag configuration. Tags can be applied to numerous items on the canvas but keep in mind the tag options set in the configuration must be compatible for all items the tag is assigned to or an error will occur. Tags must be applied to items before they can be configured.

CanvasText
class CanvasText

A canvas text item.

CanvasWidget
class CanvasWidget

A canvas widget item.

Enums

CanvasArcStyle
enum CanvasArcStyle

Styles of arcs

CanvasLineArrow
enum CanvasLineArrow

Arrow positions on a canvas line.

CanvasLineCapStyle
enum CanvasLineCapStyle

The cap styles of a canvas line.

CanvasLineJoinStyle
enum CanvasLineJoinStyle

The join styles of a canvas line.

CanvasLineSmoothMethod
enum CanvasLineSmoothMethod

The join styles of a canvas line.

Meta

License

MIT. See LICENSE for full details.