Skip to content

Commit

Permalink
Remove Tools menu (mne-tools#7361)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFavelier authored and AdoNunes committed Apr 6, 2020
1 parent 62469ae commit 1a90ffb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mne/viz/_brain/_timeviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,15 @@ def __init__(self, brain, show_traces=False):
self._mouse_no_mvt = -1
self.enable_point_picking()

# remove default picking menu
main_menu = self.plotter.main_menu
to_remove = list()
for action in main_menu.actions():
if action.text() == "Tools":
to_remove.append(action)
for action in to_remove:
main_menu.removeAction(action)

# setup key bindings
self.key_bindings = {
'?': self.help,
Expand Down

0 comments on commit 1a90ffb

Please sign in to comment.