next up previous contents index
Next: Example Up: Canvas Previous: Canvas   Contents   Index

Managing graphical objects

(set-coords canvas item coords)

Changes the coordinate settings for any canvas item. item is the handle returned by the create function, coords is a list with the coordinates. With this function, objects can be moved or reshaped.

(scrollregion canvas x0 y0 x1 y1)

Set the scroll region of the canvas. x0 y0 are the coordinates of the upper left, x1 y1 of the lower right corner of the scroll region.

(itemconfigure canvas item option value)

Configure one configuration option for item displayed on canvas. Options are given as strings, value is any tkobject or printable value. Options possible for all items are:

dash pattern
activedash pattern
disableddash pattern
dashoffset offset
fill color name of a color to fill the item, or empty string for none.
activefill color
disabledfill color
outline color
activeoutline color
disabledoutline color
offset offset
outlinestipple bitmap
activeoutlinestipple bitmap
stipple bitmap
activestipple bitmap
disabledstipple bitmap
state state One of normal, disabled or hidden.
tags taglist
width outlinewidth
activewidth outlinewidth
disabledwidth outlinewidth


next up previous contents index
Next: Example Up: Canvas Previous: Canvas   Contents   Index
Peter Herth 2006-01-29