Skip to content

pop_chanevent window: the two blank rows are gone since #722, and one note is shifted #771

Done

Description

@arnodelorme

Arno tested develop on his Mac on November 27, 2026: "Same for pop_chanevent. There was a fix for the alignment, but it was lost." The boxes are still in one column (pull request #716), but the window lost its two blank rows and one note is shifted.

  • What was lost: pull request [GUI] Share dialog height among rows and add the pop_importdata note #722 made the rows of a dialog share its height when the dialog has a size. pop_chanevent has a width and no height (size=(833, None)), so its two empty rows became stretches of zero height. The window went from 314 to 258 pixels high and the groups are no longer separated as in EEGLAB.
  • Fix 1, one line in guifunc/qt.py: in _rows_share_height, add the condition spec.size[1] is not None, so that only a dialog with a fixed height shares it among its rows. pop_chanevent is the only dialog with a width and no height.
  • Fix 2, the note: the text ' (set = yes)' starts with eight spaces copied from EEGLAB, so it sits 32 pixels to the right of (set=yes) above it. Remove the spaces, in EEGPrep (pop_chanevent.py) and in EEGLAB (pop_chanevent.m, its own pull request).
  • Test: in test_chanevent_labels_fit_their_column, the step from the first edit box to the second is more than 1.8 times the step between two rows, and the two notes start at the same x.
  • Uneven row heights on the Mac (checkbox rows 26 pixels, edit rows 20): this comes from the shared widget code and concerns every dialog. It is its own issue under supergui (the shared dialog code): graphical parity with EEGLAB #745.

The captures before and after are in the pull request and in #739.

Part of #739

Activity

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

    @claude
    Contributor

    🤖 Plan:

    • Extend test_chanevent_labels_fit_their_column (blank-row gap > 1.8× row step, notes share x)
    • _rows_share_height: require spec.size[1] is not None
    • Strip leading spaces from (set = yes) in pop_chanevent.py
    • Pre-commit + non-Qt tests pass locally (Qt tests need CI: no libEGL on runner)
    • CI on [GUI] Restore pop_chanevent blank rows and align its notes #773
  3. arnodelorme commented on Nov 27, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Ready in pull request #773 (opened by the automatic agent, reviewed, right as it is) and sccn/eeglab#996 for the note in EEGLAB. The two blank rows are back and the two notes start at the same place. Checked on jamming and with the native Mac style. Captures in #773 and in #739.

  4. added a commit that references this issue on Nov 28, 2026
    2eb1c1f
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