Tk Source Code

View Ticket
Login
Ticket UUID: 4c84b1111137ea551efa00b199cef14e8a897b18
Title: Documentation error on page "event": <<ThemeChanged>> is only delivered to text widgets.
Type: Bug Version: 8.6
Submitter: oehhar Created on: 2018-09-27 18:19:59
Subsystem: 69. Events Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2018-10-07 18:54:02
Resolution: Fixed Closed By: fvogel
    Closed on: 2018-10-07 18:54:02
Description:

When reading the event documentation: https://core.tcl.tk/tk/artifact/86b6def827571e8b

\fB<<ThemeChanged>>\fR
This is sent to a text widget when the ttk (Tile) theme changed.

On tcl-core, Donal stated

It's wrong. Everything gets the event. Text widgets ignore it as they've got no (class) bindings for it. Ttk widgets listen for it using C-level bindings. 

This might be a copy and paste error.

User Comments: fvogel added on 2018-10-07 18:54:02:
"Legacy widgets" as opposed to "ttk widgets" (which are more recent).

I have intentionally waited for a week between the fix proposal in the bugfix branch and the merging of it in the release branches, so that people have time to review. If my proposed wording was unclear I would have appreciated comments in that timeframe. That said we can still change the wording but if so please propose something.

oehhar added on 2018-10-07 18:47:54:
Thank you, Francois, this is appreciated.

I don't know what "the Legacy Widgets" are, but that might be me.

Thank you,
Harald

fvogel added on 2018-10-06 09:28:45:
Merged to core-8-6-branch and trunk.

fvogel added on 2018-09-29 14:45:37:

Sorry, rather [919390e3] (this is in the correct branch off-core-8-6-branch).


fvogel added on 2018-09-29 14:38:28:

Fix proposal: [8423444051]