Skip to content

pop_chanevent window: edit boxes not aligned vertically in EEGPrep #705

Done

Description

@arnodelorme

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.

Arno's comment, in his words

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

From his annotated copy of the report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/file-menu-2026-11-26/EEGPrep_vs_EEGLAB_File_menu_2026-11-26_Arno-comments.docx

How to test

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.

Activity

  1. added
    gui-parity
    on Nov 26, 2026
  2. claude commented on Nov 26, 2026

    @claude
    Contributor

    🤖 Plan:

    • Research
    • Test: chan/oper/edge/edgelen boxes share the same left x (extends test_chanevent_labels_fit_their_column)
    • Fix: weighted_columns=True, size=(700, 330) on the pop_chanevent spec
    • pre-commit, non-GUI pytest; PR [GUI] Align pop_chanevent edit boxes vertically #716 on agent/issue-705
    • 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.

    Relevant code

    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.

  3. arnodelorme commented on Nov 26, 2026

    @arnodelorme
    CollaboratorAuthor

    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.

  4. arnodelorme commented on Nov 26, 2026

    @arnodelorme
    CollaboratorAuthor

    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.

  5. added a commit that references this issue on Nov 28, 2026
    046117e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions