Skip to content

Conversation

@GuillaumeFavelier
Copy link
Contributor

This small PR allows setting dock areas other than 'left' and 'right' (namely 'top' and 'bottom').

Here is a small code snippet to try:

Details
from mne.viz.backends.renderer import _get_renderer

renderer = _get_renderer()
for area in ['top', 'bottom', 'left', 'right']:
    renderer._dock_initialize(area=area)  # <---- new parameter here
    renderer._dock_add_button(area, lambda x: None)
renderer.show()

It's a part of #10565

@GuillaumeFavelier GuillaumeFavelier self-assigned this Apr 27, 2022
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
@larsoner larsoner merged commit 4cab7a5 into mne-tools:main Apr 27, 2022
@larsoner
Copy link
Member

Thanks @GuillaumeFavelier !

larsoner added a commit to larsoner/mne-python that referenced this pull request Apr 27, 2022
* upstream/main:
  MNT: dock area (mne-tools#10575)
  MNT: dialog box icon (mne-tools#10573)
  ENH: Add head_source option (mne-tools#10569)
  fix for broken subjdir (mne-tools#10574)
  MAINT: Add export functions to env (mne-tools#10563)
  Add support for BrainVision ahdr/amrk format, as produced by the V-AMP (mne-tools#10515)
@GuillaumeFavelier GuillaumeFavelier deleted the mnt/dock branch April 27, 2022 17:51
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.

2 participants