Tk Library Source Code

View Ticket
Login
Ticket UUID: cae8caf6ca98215daf9e43e73fa6ce3fa22ff7dc
Title: cursor: propagate skips widgets with an empty cursor
Type: Bug Version: trunk
Submitter: serhiy.storchaka Created on: 2026-11-21 18:08:47
Subsystem: tklib :: cursor Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-11-21 18:08:47
Resolution: None Closed By: nobody
    Closed on:
Description:

The bug below was found by the tests in branch tests-cursor; it is covered by tests cursor-2.5 and cursor-2.6 with the knownBug constraint.

  • The manual page says that ::cursor::propagate "Sets the cursor for the specified widget and all its descendants", but the code leaves alone every widget whose -cursor is empty (the default for labels, frames and toplevels), so ::cursor::propagate .t watch does not change the cursor of a child label .t.l, and ::cursor::propagate .top watch changes neither a plain toplevel .top nor its frame .top.f (both keep {}, expected watch). In particular, ::cursor::propagate . watch does not show the watch cursor over a toplevel and its frames and labels. Tk 8.6 and 9.1. Tests cursor-2.5, cursor-2.6.