You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mu editor is not fully accessible for blind or visually impaired users with screen reader (on windows with NVDA free and open source screen reader).
some shortcuts are missing ot access main widow icons.
also, to make it accessible some rules have to be followed under pyQT5
To make a PyQt5 application accessible for blind or visually impaired users who use a screen reader like NVDA, follow these key steps:
1. Use Standard Accessible Widgets
PyQt5 supports accessibility via standard accessibility APIs (such as UI Automation on Windows). Widgets like QPushButton, QLineEdit, and QLabel are typically accessible by default. Use these standard widgets whenever possible.
2. Set Accessible Descriptions
Provide accessible information by using the accessibleName and accessibleDescription properties of widgets. These allow the screen reader to announce meaningful information about the interface elements.
Download and install NVDA (if not already installed), and test your application by navigating with the keyboard while listening to the feedback.
Ensure elements are announced with meaningful descriptions.
Verify that Tab, Shift+Tab, and arrow key navigation work correctly.
7. Use PyQt5 Tools for Advanced Accessibility
If creating custom widgets, define an accessible role by implementing a QAccessibleInterface.
Example for a custom widget:
fromPyQt5.QtWidgetsimportQWidgetfromPyQt5.QtGuiimportQAccessible, QAccessibleInterfaceclassMyCustomWidget(QWidget):
def__init__(self, parent=None):
super().__init__(parent)
defaccessibleRole(self):
returnQAccessible.Button# Declare this widget as a button
8. Provide Documentation and Gather Feedback
Include clear documentation to guide users on how to use your application with a screen reader. Solicit feedback from visually impaired users to improve accessibility.
By following these steps, your application should be accessible and navigable for users relying on a screen reader like NVDA.
many thanks by advance, best regards
The text was updated successfully, but these errors were encountered:
Mu editor is not fully accessible for blind or visually impaired users with screen reader (on windows with NVDA free and open source screen reader).
some shortcuts are missing ot access main widow icons.
also, to make it accessible some rules have to be followed under pyQT5
To make a PyQt5 application accessible for blind or visually impaired users who use a screen reader like NVDA, follow these key steps:
1. Use Standard Accessible Widgets
PyQt5 supports accessibility via standard accessibility APIs (such as UI Automation on Windows). Widgets like
QPushButton
,QLineEdit
, andQLabel
are typically accessible by default. Use these standard widgets whenever possible.2. Set Accessible Descriptions
Provide accessible information by using the
accessibleName
andaccessibleDescription
properties of widgets. These allow the screen reader to announce meaningful information about the interface elements.Example:
3. Link Labels to Form Fields
Use widgets like
QLabel
to provide context to form fields and associate them withsetBuddy()
.Example:
4. Add Keyboard Shortcuts
Provide keyboard shortcuts to allow navigation without using a mouse. For instance, use
setShortcut()
to link actions to keyboard keys.Example:
5. Explicitly Enable Accessibility (if Needed)
On some platforms, you may need to explicitly enable accessibility with PyQt5. Use the
QAccessible
module for this purpose.Example:
6. Test with NVDA
Download and install NVDA (if not already installed), and test your application by navigating with the keyboard while listening to the feedback.
7. Use PyQt5 Tools for Advanced Accessibility
If creating custom widgets, define an accessible role by implementing a
QAccessibleInterface
.Example for a custom widget:
8. Provide Documentation and Gather Feedback
Include clear documentation to guide users on how to use your application with a screen reader. Solicit feedback from visually impaired users to improve accessibility.
By following these steps, your application should be accessible and navigable for users relying on a screen reader like NVDA.
many thanks by advance, best regards
The text was updated successfully, but these errors were encountered: