Options specific to Canvas

Option (alias)

Description

Units

Typical Default

insertback-ground insertborder-width insertofftime insertontime insertwidth boolean FALSE 1 1

closeenough Specifies a floating-point value indicating how float 0.5

close the mouse cursor must be to an item before it is considered to be "inside" the item. Defaults to 1.0.

confine Specifies a boolean value that indicates whether or not it should be allowable to set the canvas's view outside the region defined by the scrollre-gion argument. Defaults to true, which means that the view will be constrained within the scroll region.

Specifies the color to use as background in the color 'yel- SystemBut-area covered by the insertion cursor. This color low1 tonText will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).

Specifies a non-negative value indicating the pixel 2 0

width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to Tkinter (Tk_GetPixels).

Specifies a non-negative integer value indicating integer 250 300

the number of milliseconds the insertion cursor should remain "off" in each blink cycle. If this option is zero then the cursor doesn't blink—it is on all the time.

Specifies a non-negative integer value indicating integer 175 600

the number of milliseconds the insertion cursor should remain "on" in each blink cycle.

Specifies a value indicating the total width of the pixel 2 2

insertion cursor. The value may have any of the forms acceptable to Tkinter (Tk_GetPixels). If a border has been specified for the insertion cursor (using the insertBorderWidth option), the border will be drawn inside the width specified by the insertWidth option.

scrollregion Specifies a list with four coordinates describing list (10,10, the left, top, right, and bottom coordinates of a 200,250

rectangular region. This region is used for scrolling purposes and is considered to be the boundary of the information in the canvas. Each of the coordinates may be specified in any of the forms given in the coordinates section below.

CO O

xscrollincrement Specifies an increment for horizontal scrolling, in distance 10m 200 0 any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the horizontal view in the window will be constrained so that the canvas x coordinate at the left edge of the window is always an even multiple of xscrollincrement; furthermore, the units for scrolling (e.g., the change in view when the left and right arrows of a scrollbar are selected) will also be xscrollincrement. If the value of this option is less than or equal to zero, then horizontal scrolling is unconstrained.

yscrollcommand Specifies the prefix for a command used to com- function municate with vertical scrollbars. This option is treated in the same way as the xScrollCom-mand option, except that it is used for vertical scrollbars and is provided by widgets that support vertical scrolling. See the description of xScrollCommand for details on how this option is used.

yscrollincrement Specifies an increment for horizontal scrolling, in distance 10m 200 0 any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the horizontal view in the window will be constrained so that the canvas y coordinate at the top edge of the window is always an even multiple of yscrollincrement; furthermore, the units for scrolling (e.g., the change in view when the top and bottom arrows of a scrollbar are selected) will also be yscrollincrement. If the value of this option is less than or equal to zero, then horizontal scrolling is unconstrained.

0 0

Post a comment

  • Receive news updates via email from this site