Skip to content

Enable event navigation in pop_editeventvals dialog#230

Open
claude[bot] wants to merge 1 commit into
developfrom
agent/20260613-fix-228
Open

Enable event navigation in pop_editeventvals dialog#230
claude[bot] wants to merge 1 commit into
developfrom
agent/20260613-fix-228

Conversation

@claude

@claude claude Bot commented Jun 13, 2026

Copy link
Copy Markdown

The pop_editeventvals dialog hardcoded the four event navigation buttons (<<, <, >, >>) as disabled with no callback, so the eventnum field stayed at 1 and only the first event was browsable. Enable the buttons when the dataset has multiple events and add a navigate_event callback in the Qt renderer that clamps eventnum into [1, N] and refreshes the field_* widgets from the per-event display values cached in the spec.

Fixes #228

The dialog wired the <<, <, >, >> nav buttons as enabled=False and
provided no callback, so users could only browse event 1 even with many
events in EEG.event. Enable the four buttons when len(events) > 1, ship
each one with a navigate_event CallbackSpec carrying its delta plus the
per-event display values, and handle the callback in the Qt renderer to
clamp the eventnum into [1, N] and refresh the field_* widgets.

Fixes #228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Event and channel browsing -- pop_editeventvals and pop_chanedit

0 participants