| 12.6 Mouse Cursor |
|
|
All widget classes have a Tk has some built-in cursors which you can access with this form of the -cursor option, -cursor CURSOR_NAMEHere are some possible values for CURSOR_NAME.
Here is an example that creates and packs a frame in such a way that the mouse cursor will have the appearance specified by X_cursor when it is over the frame. pack [frame .fr -width 1c -height 1c -cursor X_cursor] The -cursor option has other variations that let you control colors and load your own bitmaps. See your on-line manual.
|
Author's Home Page |
|
Order from Amazon. |