Repository navigation
[GUI] Align pop_export checkboxes and edit boxes - #717
Conversation
Every checkbox row now shares one geometry and both edit rows share a geometry with the same row total and lead weight, so the second column starts at the same x. Fixes #706. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @claude[bot]'s task in 1m 18s —— View job Code review
BlockingNone. Important
NitsNone. Test gapsNone. EEGLAB parity notes
Not doneI couldn't run |
| [3, 2, 0.05, 0.05], | ||
| [3, 2, 0.05, 0.05], | ||
| *[[3, 0.7, 0.8, 0.6]] * 6, | ||
| *[[3, 1.5, 0.3, 0.3]] * 2, |
There was a problem hiding this comment.
Important (EEGLAB parity / root cause): The old edit rows [3, 2, 0.05, 0.05] already added up to 5.1, the same as [3, 0.7, 0.8, 0.6]. With weights alone, column 2 already started at the same x. So shrinking the edit width from 2 to 1.5 doesn't explain the misalignment. It also makes the precision and expr boxes narrower than in the geometry this spec was built from (pop_export.m lines 77-99).
The misalignment most likely comes from the non-weighted renderer path (
eegprep/src/eegprep/functions/guifunc/qt.py
Lines 245 to 254 in d588c19
QHBoxLayout stretch factors but keeps each widget's own size policy. Long labels such as "Apply an expression to the output (see 'expr' help):" have a minimum width from their size hint, so each row's column-2 x depends on the font, not just the weights.
Suggested fix: keep EEGLAB's original geometry for the edit rows and set weighted_columns=True on this DialogSpec, as pop_importevent, pop_erpimage and others do. That path sets each widget's horizontal policy to Ignored, so column positions come only from the weights (
eegprep/src/eegprep/functions/guifunc/qt.py
Lines 239 to 245 in d588c19
[1.7, 0.25, …] or become [3, 0.7, 0.8, 0.6] should then follow pop_export.m. The new left-edge test will check either choice.
|
The bot suggested going back to EEGLAB's edit row geometry [3 2 0.05 0.05] and turning on weighted columns. Weighted columns were already turned on in commit aaaf321, after the bot's review. I tried the geometry it suggested, and the expression box then starts 30 pixels to the left of the checkboxes (x=506 instead of 536), so the alignment test fails. The [3 1.5 0.3 0.3] rows of this pull request are needed for the alignment Arno asked for in issue 706. The bot's sum argument also misses that EEGLAB's checkbox rows [1.7 0.25 0.7 0.6] add up to 3.25, not 5.1. No code change. The 28 tests of tests/test_stream10_export_bids.py pass offscreen on macOS, the alignment and Help test included, and CI is green. — orchestrator |

The six checkbox rows of pop_export use [3 0.7 0.8 0.6] and the two edit rows [3 1.5 0.3 0.3], with columns sized by weight, so checkboxes and edit boxes start at the same x. The window is 852 pixels wide and shows the missing Help button. A Qt test checks the left edges and the Help button.
Captures (EEGLAB, before, after) and tests: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-706/issue-706_before_after.pdf (Word: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-706/issue-706_before_after.docx)
Fixes #706
Part of #740