Re: rebuilding wx widgets with accessible addons

Nathan smith <[email protected]> Mon, 18 Nov 2024 16:25:46 +0000
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Good afternoon Dietmar


SetLabel does indeed work for wx.Listctrl, though if I use it on 
wx.TextCtrl it sets the value, as well..

Oddly, SetName still works for textctrl.


I am left with sliders currently being the biggest barrier to upgrading 
as neither SetName or SetLabel seem to provide a valid screen reader label.

I've not come across SetWindowText so will look into that.


I can not emphasise enough my gratitude for your time on this, even 
knowing there's someone else lending a hand to track this down is a huge 
help

Nathan


On 17/11/2024 22:15, Dietmar Schwertberger wrote:
> Hi Nathan,
>
> the accessibility flag should be set by default for wxPython on Windows.
> For basic accessibility of standard Windows controls, this probably 
> does not have an influence, as this is handled by Windows.
>
> Could you please try whether a call to SetLabel does work for you?
> It seems that wxListCtrl is calling MSWCreateControl with an empty 
> argument for the label.
> For other controls like checkboxes, the label is supplied.
> SetLabel is calling the Windows function SetWindowText, which modifies 
> this label property.
> SetName on the other hand does seem to set only the internal name 
> property.
>
> I have checked the sources for 4.0.7post2, but could not find where 
> SetName would do anything else than setting the wx internal name 
> property.
>
> Regards,
>
> Dietmar
>

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wxpython-users/a7ed1b4e-c038-4874-8c62-9a04d2526c7c%40gmail.com.