Skip to content

Update the Audacity appModule#8181

Merged
michaelDCurran merged 2 commits intonvaccess:masterfrom
Robert-J-H:audacity-appmodule-update
Jun 13, 2018
Merged

Update the Audacity appModule#8181
michaelDCurran merged 2 commits intonvaccess:masterfrom
Robert-J-H:audacity-appmodule-update

Conversation

@Robert-J-H
Copy link
Copy Markdown
Contributor

Link to issue number:

#8100 78

Summary of the issue:

In response to a request from the Audacity developers (issue #8178).
The workaround with window text for buttons is no longer needed.
Audacity versions that are released and still supported at the moment of this writing won't show a difference.
The upcoming 2.3.0 version, on the other hand, will greatly profit from the change.

Description of how this pull request fixes the issue:

As it should be, the IAccessible name is used instead of the window text.
The ampersand is however still replaced with an empty string.
This is only needed for older versions of WxWidgets.

Testing performed:

Yes, versions above 2.x.

Known issues with pull request:

None known.

Change log entry:

No visible change for the user.

In response to a request from the Audacity developers (issue nvaccess#8178).
The workaround for buttons is no longer needed.
However, the deletion of ampersand characters will be kept for the sake of backwards compatibility.
Copy link
Copy Markdown
Contributor

@josephsl josephsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from copyright header and a concern about old releases, I'm fine with this change, although we still need to do real-world testing at some point (by folks other than Robert). Thanks.

#appModules/audacity.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2010 NVDA Contributors <http://www.nvda-project.org/>
#Copyright (C) 2006-2018 NVDA Contributors <https://www.nvaccess.org/>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated copyright header should be:

Copyright (C) 2006-2018 NV Access Limited, yourname

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry about hash sign.


def event_NVDAObject_init(self,obj):
if obj.windowClassName=="Button" and not obj.role in [controlTypes.ROLE_MENUBAR, controlTypes.ROLE_MENUITEM, controlTypes.ROLE_POPUPMENU]:
obj.name=winUser.getWindowText(obj.windowHandle).replace('&','')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if someone using a really old version of Audacity decides to test this change?

Thanks.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same difference as if someone on XP decides to use NVDA. We no longer support them.

@Robert-J-H
Copy link
Copy Markdown
Contributor Author

Robert-J-H commented Apr 14, 2018 via email

#appModules/audacity.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2010 NVDA Contributors <http://www.nvda-project.org/>
#Copyright (C) 2006-2018 NV Access Limited, Robert Hänggi
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommend incubate

@josephsl
Copy link
Copy Markdown
Contributor

josephsl commented Apr 15, 2018 via email

@feerrenrut feerrenrut self-requested a review April 16, 2018 07:43
Copy link
Copy Markdown
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

feerrenrut added a commit that referenced this pull request May 14, 2018
Update the Audacity appModule
Merge remote-tracking branch 'origin/pr/8181' into next
@feerrenrut feerrenrut dismissed josephsl’s stale review May 14, 2018 07:50

As stated in #8181 (review), the copyright header has been updated, and the concern about old releases has been addressed.

@michaelDCurran michaelDCurran merged commit 89284ef into nvaccess:master Jun 13, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.3 milestone Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants