Skip to content

Tkinter: reference document of possible cursor names #76607

Description

@alex75
mannequin
BPO 32426
Nosy @terryjreedy, @serhiy-storchaka, @patthoyts

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2017-12-25.22:37:11.302>
labels = ['expert-tkinter', '3.10', 'docs']
title = 'Tkinter: reference document of possible cursor names'
updated_at = <Date 2020-11-12.21:14:46.044>
user = 'https://bugs.python.org/alex75'

bugs.python.org fields:

activity = <Date 2020-11-12.21:14:46.044>
actor = 'terry.reedy'
assignee = 'docs@python'
closed = False
closed_date = None
closer = None
components = ['Documentation', 'Tkinter']
creation = <Date 2017-12-25.22:37:11.302>
creator = 'alex.75'
dependencies = []
files = []
hgrepos = []
issue_num = 32426
keywords = []
message_count = 5.0
messages = ['309045', '309210', '380813', '380815', '380849']
nosy_count = 5.0
nosy_names = ['terry.reedy', 'docs@python', 'serhiy.storchaka', 'alex.75', 'patthoyts']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue32426'
versions = ['Python 3.10']

Linked PRs

Activity

  1. alex75 commented on Dec 25, 2017

    alex75mannequin
    MannequinAuthor

    In the documentation of Tkinter.ttk Widget it is defined the "cursor" parameter. It is:
    cursor
    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.

    There is not ANY way to knok wich value this parameter accept.
    Searching "cursor" in the documentation does not find nothing, apart database cursor and this page (Tkinter.ttk.Widget).

    Thanks,

    Alessandro

  2. terryjreedy commented on Dec 30, 2017

    @terryjreedy
    Member

    The tkinter docs currently omit much, but refer one to, among other places, http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html, which has a page with images and names.
    http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/cursors.html

  3. patthoyts commented on Nov 12, 2020

    patthoytsmannequin
    Mannequin

    The Tk documentation for the acceptable cursor names is the cursors manual page. https://www.tcl.tk/man/tcl/TkCmd/cursors.htm

    Tk does not provide a way to get all these names in script.

    This should probably be closed.

  4. alex75 commented on Nov 12, 2020

    alex75mannequin
    MannequinAuthor

    As suggested the documentation for "cursor" is here: https://www.tcl.tk/man/tcl/TkCmd/cursors.htm

    Close [SOLVED]

  5. terryjreedy commented on Nov 12, 2020

    @terryjreedy
    Member

    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.

  6. added
    docsDocumentation in the Doc dir
    and removed on Nov 12, 2020
  7. changed the title [-]Tkinter.ttk Widget does not define wich option exists to set the cursor[/-] [+]Tkinter: reference document of possible cursor names[/+] on Nov 12, 2020
  8. transferred this issue fromon Apr 10, 2022
  9. serhiy-storchaka commented on Jun 28, 2026

    @serhiy-storchaka
    Member

    PR #152481 updates the cursor option-type documentation to link to the cursors(3tk) manual page for the list of names and to note that the available names are platform-dependent, replacing the "page 179 of Ousterhout's book" reference.

    It also adds the cross-reference from the ttk standard cursor option that @terryjreedy asked for.

    That should cover both parts of this issue; it can be closed once the PR (and its 3.13–3.15 backports) land.

  10. added 4 commits that reference this issue on Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions