O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Canvas Attributes

Table 34-13 lists the attributes for the canvas widget. The table uses the resource name, which has capitals at internal word boundaries. In Tcl commands, the attributes are specified with a dash and are all lowercase.

Table 34-13. Canvas attribute resource names.
backgroundThe normal background color.
borderWidthThe width of the border around the canvas.
closeEnoughDistance from mouse to an overlapping object.
confineBoolean. True constrains the view to the scroll region.
cursorCursor to display when mouse is over the widget.
heightHeight, in screen units, of canvas display.
highlightBackgroundFocus highlight color when widget does not have focus.
highlightColorColor for input focus highlight border.
highlightThicknessWidth of highlight ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required