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
{{ message }}
Repository navigation
pop_chanevent window: edit boxes not aligned vertically in EEGPrep #705
Arno commented the File menu report of #696 (EEGPrep versus EEGLAB, side-by-side captures) on November 26, 2026; this issue is one of his comments, with one pull request to address it.
Window: 3.34 Import event info > From data channel
What to do: Use the same geometry for every row of the dialog that holds an edit box, so the boxes start at the same position.
Done when: a pull request on a branch agent/issue-<n> of develop, with captures before and after the change next to EEGLAB's, in a Word file and the same content as a PDF (rule 14), linked from the pull request. Arno merges.
On the Python side, there is an issue with the vertical alignment of the boxes. They should all be aligned vertically. The easier fix is to have the same geometry All the rows that contain edit boxes
The windows are opened on jamming (MATLAB R2025b and EEGPrep under Xvfb, /mnt/v1/arno/menutest_probe shows how), never on Arno's Mac in the daytime. Capture EEGLAB's window, EEGPrep's before and EEGPrep's after; put the three side by side. Run the tests of the functions touched (pytest) before opening the pull request.
CI (GUI test runs only there; this runner has no libEGL)
Before/after captures next to EEGLAB (Word + PDF): needs jamming, not available to this agent
Research
Every edit-box row already uses (1.5, 1, 1); the misalignment comes from the renderer. Without weighted_columns, QtDialogRenderer puts controls in a QHBoxLayout whose stretch only shares the space left after each label size hint, so longer labels ("Transition length (1=perfect edges)") push their box further right.
Fix
Set weighted_columns=True (as pop_importevent, pop_importepoch do) so every control is sized by its supergui weight alone. Window width 700 is an estimate; adjust to EEGLAB capture.
Follow-up on #716: its test failed twice on the Windows machine of GitHub only (font twice as wide and less tall). The dialog now widens when a label would be cut and keeps the height its content needs (two small opt-in options of the shared dialog code, used by this dialog only; a render of all 127 dialogs shows no other window changes). Windows and Mac tests pass on the last commit 7590842.
Activity
claude commentedon Nov 26, 2026
🤖 Plan:
test_chanevent_labels_fit_their_column)weighted_columns=True,size=(700, 330)on the pop_chanevent specagent/issue-705Research
Every edit-box row already uses
(1.5, 1, 1); the misalignment comes from the renderer. Withoutweighted_columns,QtDialogRendererputs controls in aQHBoxLayoutwhose stretch only shares the space left after each label size hint, so longer labels ("Transition length (1=perfect edges)") push their box further right.Relevant code
src/eegprep/functions/popfunc/pop_chanevent.py#L420-L437- dialog geometrysrc/eegprep/functions/guifunc/qt.py#L240-L253- weighted vs content-sized columnsFix
Set
weighted_columns=True(as pop_importevent, pop_importepoch do) so every control is sized by its supergui weight alone. Window width 700 is an estimate; adjust to EEGLAB capture.arnodelorme commentedon Nov 26, 2026
Pull request: #716 ([GUI] Align pop_chanevent edit boxes vertically). I added one commit to the agent's branch after the captures on jamming: the 700 pixel width cut two labels, and the checkboxes were still 12 pixels off. Now every row with a box has the geometry [1.5 1 1] and the eight controls start at the same position (376 pixels in the capture). Captures and tests: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-705/issue-705_before_after.pdf (Word file next to it). Arno merges.
arnodelorme commentedon Nov 26, 2026
Follow-up on #716: its test failed twice on the Windows machine of GitHub only (font twice as wide and less tall). The dialog now widens when a label would be cut and keeps the height its content needs (two small opt-in options of the shared dialog code, used by this dialog only; a render of all 127 dialogs shows no other window changes). Windows and Mac tests pass on the last commit 7590842.
[GUI] Align pop_chanevent edit boxes vertically (sccn#716)