Re: rebuilding wx widgets with accessible addons
Dietmar Schwertberger <[email protected]> Mon, 18 Nov 2024 22:34:01 +0100
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hi Nathan, I think the changed behaviour is related to this wxPython pull request: https://github.com/wxWidgets/wxWidgets/pull/340 wxPython 4.0.7 has the old implementation where a wxWindowAccessible would be created where the new implementation relies on the behaviour of the Windows control. I will check some things, e.g. why a slider gets the default name 'slider' instead of the argument provided to the wxSlider constructor. Regards, Dietmar On 11/18/2024 5:25 PM, Nathan smith wrote: > 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/75a0c574-9f07-42e8-9e17-3fb42f928bf8%40schwertberger.de.