Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move tab management to "Kernel" menu

  • Loading branch information...
commit ef6e68c4d40d4f851dba41c2887d11fc0a0a9687 1 parent 9c42726
@Carreau Carreau authored fperez committed
Showing with 7 additions and 5 deletions.
  1. +7 −5 IPython/frontend/qt/console/qtconsoleapp.py
View
12 IPython/frontend/qt/console/qtconsoleapp.py
@@ -326,6 +326,7 @@ def init_menu_bar(self):
#create menu in the order they should appear in the menu bar
self.file_menu = self.menuBar().addMenu("&File")
self.edit_menu = self.menuBar().addMenu("&Edit")
+ self.kernel_menu = self.menuBar().addMenu("&Kernel")
self.window_menu = self.menuBar().addMenu("&Window")
self.magic_menu = self.menuBar().addMenu("&Magic")
self.all_magic_menu = self.magic_menu.addMenu("&All Magic")
@@ -1050,14 +1051,14 @@ def init_window_shortcut(self):
self.window,
shortcut="Ctrl+T",
triggered=self.create_tab_with_new_frontend)
- self.window.window_menu.addAction(self.tabAndNewKernelAct)
+ self.window.kernel_menu.addAction(self.tabAndNewKernelAct)
self.tabSameKernalAct =QtGui.QAction("Tab with Sa&me kernel",
self.window,
shortcut="Ctrl+Shift+T",
triggered=self.create_tab_attached_to_current_tab_kernel)
- self.window.window_menu.addAction(self.tabSameKernalAct)
- self.window.window_menu.addSeparator()
+ self.window.kernel_menu.addAction(self.tabSameKernalAct)
+ self.window.kernel_menu.addSeparator()
self.onlineHelpAct = QtGui.QAction("Open Online &Help",
self.window,
@@ -1080,9 +1081,10 @@ def init_window_shortcut(self):
self.window_menu = self.window.window_menu
+ self.kernel_menu = self.window.kernel_menu
- self.window_menu.addAction(self.next_tab_act)
- self.window_menu.addAction(self.prev_tab_act)
+ self.kernel_menu.addAction(self.next_tab_act)
+ self.kernel_menu.addAction(self.prev_tab_act)
self.window_menu.addSeparator()
self.window_menu.addAction(self.minimizeAct)
self.window_menu.addAction(self.maximizeAct)
Please sign in to comment.
Something went wrong with that request. Please try again.