Message380849
A link here is not a patch. The current tkinter doc for the cursor option in https://docs.python.org/3/library/tkinter.html#tk-option-data-types badly needs updating.
"""
The standard X cursor names from cursorfont.h can be used, without the XC_ prefix. For example to get a hand cursor (XC_hand2), use the string "hand2". You can also specify a bitmap and mask file of your own. See page 179 of Ousterhout’s book.
"""
The ttk doc https://docs.python.org/3/library/tkinter.ttk.html#standard-options is, as noted, incomplete.
"Specifies the mouse cursor to be used for the widget. If set to the empty string (the default), the cursor is inherited for the parent widget."
I propose to replace the tkinter entry with a combined and updated entry.
"""
The name of the cursor to use when the mouse point is over the widget. An empty string, the default, means to inherit the cursor from the parent widget or the system. "none" means no cursor. Other names recognized by tk are listed at https://www.tcl.tk/man/tcl/TkCmd/cursors.htm. Possible forms of the cross-platform cursors are illustrated at https://tkdocs.com/shipman/cursors.html. The cursor hot spot, the point reported for mouse clicks, depends on the cursor.
"""
I may try to reference this, rather than copy it, in the ttk doc. |
|
Date |
User |
Action |
Args |
2020-11-12 21:14:46 | terry.reedy | set | recipients:
+ terry.reedy, docs@python, serhiy.storchaka, alex.75, patthoyts |
2020-11-12 21:14:46 | terry.reedy | set | messageid: <1605215686.06.0.277474769888.issue32426@roundup.psfhosted.org> |
2020-11-12 21:14:46 | terry.reedy | link | issue32426 messages |
2020-11-12 21:14:45 | terry.reedy | create | |
|