Skip to content

pop_importdata window: text squeezed and the channel location note missing (shared layout) #700

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.

  • Window: 3.2 Import data > Using EEGLAB functions and plugins > From ASCII/float file or MATLAB array (findings F17)
  • What to do: Find why supergui/inputgui squeeze the text column, fix it in the shared layout code, and add EEGLAB's note on channel locations ("use menu Edit > Channel locations ..."). Because the fix moves other windows, capture every window of the File menu before and after, not only this one.
  • 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.
  • Rules: 7, 8 and 15 of the EEGPrep GUI rules: https://github.com/adelorme-assistant/project_eegprep/blob/main/rules/gui-parity.md
Arno's comment, in his words

On the Python side, the text is too compressed. It doesn't take the entire window like the MATLAB side. Also, the note is missing on the Python side (for the channel location side). Note this is a delicate fix because it will affect many other graphical interfaces. It is an important one, though.

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:

    • Fetch issue, research layout code, duplicate-work preflight (no open PRs touching pop_importdata/supergui)
    • Human review of proposed approach. No PR opened: this changes the shared layout used by every inputgui dialog, and the definition of done needs before/after captures of all File menu windows on jamming plus a Word/PDF report. This runner can't produce those.

    Research

    DialogRenderer has two ways to lay out a row. By default it adds each control with a Qt stretch factor (weight*100) and keeps the widget's normal size policy. Qt then gives each label and edit box its size hint first and splits only the leftover width by stretch, so columns follow their content instead of the geometry weights that supergui.m uses. The opt-in weighted_columns=True mode (size policy Ignored + _supergui_stretch) already reproduces supergui widths. Only 5 dialogs use it (pop_importevent, pop_importepoch, pop_importerplab, pop_erpimage, pop_editoptions), and pop_importdata is not one of them. The channel-location note row is missing from the spec.

    Relevant code

    Proposed Fix

    Two options; a human should pick one:

    1. Shared fix (what Arno asked for): make supergui weighting the default in DialogRenderer. Set weighted_columns to True, then remove the flag and the stretch branch. Fix any dialog whose geometry depended on content sizing. Every inputgui-based window moves, so this needs the full File menu before/after capture run on jamming.
    2. Local fix: set weighted_columns=True in pop_importdata_dialog_spec only. Small and low risk, but other dialogs stay squeezed.

    With either option, add EEGLAB's note as a text row after the chanlocs row in pop_importdata.py (one more geometry entry 1). Use the exact string from pop_importdata.m ("... use menu Edit > Channel locations ..."), and update resources/help/pop_importdata.md if needed.

    Open questions: option 1 or 2? Should the note text be copied word for word from pop_importdata.m on EEGLAB develop? Who runs the jamming capture/report step that rule 14 requires?

  3. arnodelorme commented on Nov 26, 2026

    @arnodelorme
    CollaboratorAuthor

    Pull request: #722 ([GUI] Share dialog height among rows and add the pop_importdata note). Cause: a dialog with a fixed size stacked its rows at the top and left the spare height empty, where supergui shares the height among the rows. The shared fix is about twenty lines of guifunc/qt.py (option 1 of the plan above, limited to the height). pop_importdata also gets the note and weighted columns (option 2, for this dialog only). Every File menu window was captured before and after: 21 of 27 identical, 6 changed. Across all menus 49 dialogs change the same way. Full test suite on jamming: no test changed its result. Report: https://github.com/adelorme-assistant/project_eegprep/blob/main/reports/pr-700/issue-700_before_after.pdf (Word file next to it). This is the delicate one: merge it after the others. Arno merges.

  4. arnodelorme commented on Nov 26, 2026

    @arnodelorme
    CollaboratorAuthor

    Done: File menu comments of Arno (issues 699 to 710, 708 skipped): ten pull requests are open with EEGLAB, before and after captures from jamming, a Word file and a PDF each (712, 713, 714, 715, 716, 717, 719, 720, 721, 722), and one email sent with the combined Word file and PDF. Issue 701 (pop_biosig) is done and reported but has no pull request: its commit reached sccn/eegprep develop by mistake through repo-push, as did the EEGLAB half of 704 on sccn/eeglab develop. Revert pull requests 718 (eegprep) and 988 (eeglab) wait for Arno's decision (alerts 1027 and 1029). Nothing merged.

    Pull request: #722

    — eegprep, reported with orch done

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