Skip to content

Place the "Don't show this message again" checkbox to the left of it.#15434

Merged
seanbudd merged 3 commits into
nvaccess:masterfrom
hwf1324:Fix-#15426
Sep 20, 2023
Merged

Place the "Don't show this message again" checkbox to the left of it.#15434
seanbudd merged 3 commits into
nvaccess:masterfrom
hwf1324:Fix-#15426

Conversation

@hwf1324

@hwf1324 hwf1324 commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #15426

Summary of the issue:

The "Don't show this message again" checkbox in the "Add-on Store Warning" dialogue box should be on the left side of its label, but is currently on the right side of its label.

Description of user facing changes

Visually the "Don't show this message again" checkbox is located to the left of its label.

Description of development approach

Change the way to add CheckBox from addLabeledControl to addItem to be consistent with other GUIs.

Testing strategy:

Visual check.

Known issues with pull request:

none

Change log entries:

Not needed

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • Security precautions taken.

@hwf1324 hwf1324 requested a review from a team as a code owner September 12, 2023 15:34
@hwf1324 hwf1324 requested a review from seanbudd September 12, 2023 15:34
@seanbudd seanbudd added this to the 2024.1 milestone Sep 14, 2023
@seanbudd

Copy link
Copy Markdown
Member

Hi @hwf1324 - I forced pushed some changes to fix the underlying issue, rather than avoiding relying on our helper functions

@CyrilleB79

Copy link
Copy Markdown
Contributor

@seanbudd why was it a problem to avoid using NVDA's helper functions? Everywhere in NVDA code base, NVDA does not use addLabeledControl but inserts directly the checkbox with addItem.

As #15426 (comment) indicates, please have a look at screen curtain warning dialog.

@seanbudd

Copy link
Copy Markdown
Member

@CyrilleB79 - it's better to fix the root problem, otherwise other instances of trying to use the helper function to add a labelled checkbox would cause the same issue.

The support for checkboxes in the helper function was added recently, for the same convenience reasons that the helper function exists for other controls.
Older instances which use the more verbose method can always be converted later.

@seanbudd

Copy link
Copy Markdown
Member

@hwf1324 - can you explain the reasoning for the changes you pushed?

@CyrilleB79

Copy link
Copy Markdown
Contributor

@CyrilleB79 - it's better to fix the root problem, otherwise other instances of trying to use the helper function to add a labelled checkbox would cause the same issue.

The support for checkboxes in the helper function was added recently, for the same convenience reasons that the helper function exists for other controls. Older instances which use the more verbose method can always be converted later.

I do not know for which use case the support of checkbox in the helper function was added; it may be worth looking at it to understand if these are specific cases or not.

But on the contrary to combobox or edit field, wxPython's checkbox already implements the checkbox square and its label in the same control. Thus, there is no need to create a wx.Checkbox with no label and then associate our static text label thanks to our custom helper function. I feel that this encapsulation is more confusing.
The only case in which it can be useful is if you want to have the square located at the right of the label instead of having it located at its left as wx.Checkbox does.
Just my opinion though; the final decision is yours.

@hwf1324

hwf1324 commented Sep 14, 2023

Copy link
Copy Markdown
Contributor Author

@hwf1324 - can you explain the reasoning for the changes you pushed?

@seanbudd, I'm not sure I understand what you mean.

My first thought was that it didn't match the look of the existing GUI interface, so I wanted them to be unified.

Then I found out through the "wxPython Widget Inspection Tool" that the checkbox is actually a combination of two controls.

For the mouse user, when they turn on the role of the object that reports what the mouse has moved to, the role for the StaticText control is just text, not a checkbox.

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 79faa1f23d

@seanbudd seanbudd merged commit 0c5f6dc into nvaccess:master Sep 20, 2023
@hwf1324 hwf1324 deleted the Fix-#15426 branch September 21, 2023 12:32
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.

Add-on Store GUI: The "Don't show this message again" checkbox of the "Add-on Store Warning" dialogue box should be on the left side of its label.

4 participants