Hello! New wxPython user here, and I’m developing an application that I want to be accessible for the blind. As such I’m using NVDA to test my app’s accessibility. One issue I’ve found is that StaticText objects are sometimes skipped over when moving between UI elements. I’ve tried using a read-only TextCtrl, but those are similarly skipped over. I’m wondering if anyone had any advice on what Windows would work well in this situation. Thanks!
For most widgets wx uses the native Windows controls.
It’s important that e.g. a StaticText as label for a text input is created right before the text input. Then the content of the StaticText is detected as label for the input.
I think that StaticText controls on their own will only be read if the mouse is moved over them.
wxWidgets 3.3 has improved support for accessibility, for grid and for implementation of application specific accessibility features. These modifications have not propagated into the wxPython sources yet.
See also the note here:
You may want to give widget.SetAccessible a try.
If you want to try a GUI builder, you might give wxGlade a try. This is supporting accessiblity as good as possible. It has related options in Preferences → Accessibility to work around some limitations. E.g. a panel with image buttons will be replaced with text buttons and for grids there will be separate text controls for editing the values.