Tk Source Code

View Ticket
Login
Ticket UUID: 1110144ae95b399e1ce1610be701589d5434bd80
Title: TIP 733 - accessible - How to make self drawn widgets accessible with a canvas?
Type: Support Version: 9.1
Submitter: anonymous Created on: 2026-01-05 12:07:27
Subsystem: (unused) Assigned To: kevin_walzer
Priority: 5 Medium Severity: Minor
Status: Open Last Modified: 2026-01-06 11:25:56
Resolution: None Closed By: nobody
    Closed on:
Description:
TIP 733 - states that quote "the canvas widget is not exposed as an accessible object except by name" - How would I make a self drawn Label with the canvas accessible? For instance I have made me a "SelectableLabel" and a "EditableLabel" and would like to include the feature of accessibility.
User Comments: anonymous added on 2026-01-06 11:25:56:
I would like to include this link here, for everyone that is interested in that topic and find themselves here on their path of research.
https://www.w3.org/WAI/WCAG22/quickref/?showtechniques=111#non-text-content

anonymous added on 2026-01-05 13:32:30:
Thanks for your reply.
Maybe I need to wait for the documentation on that feature.
Sadly there is none here https://www.tcl-lang.org/man/tcl9.1/TkCmd/index.html
and nothing is linked in the TIP.

But I think I understand what you suggested.
The parameters can be "customized by the developer as needed."
-> So I could just copy and paste the parameters content of a lable into a canvas.

I was afraid the parameters won't be available at all.

kevin_walzer added on 2026-01-05 12:53:08:
The canvas is explicitly excluded from accessible support because no platform has an API that supports making graphic objects accessible. You can probably work around this by setting the value or name of the canvas to whatever object is selected; that is how HTML5 makes the canvas widget accessible, by activating attributes of the widget itself rather than its rendered objects. You may have to experiment.