Show More
@@ -235,6 +235,12 b' class MainWindow(QtGui.QMainWindow):' | |||||
235 | self.makeFrontendVisible(frontend) |
|
235 | self.makeFrontendVisible(frontend) | |
236 | frontend.exit_requested.connect(self.closeTab) |
|
236 | frontend.exit_requested.connect(self.closeTab) | |
237 |
|
237 | |||
|
238 | def nextTab(self): | |||
|
239 | self.tabWidget.setCurrentIndex((self.tabWidget.currentIndex()+1)) | |||
|
240 | ||||
|
241 | def prevTab(self): | |||
|
242 | self.tabWidget.setCurrentIndex((self.tabWidget.currentIndex()-1)) | |||
|
243 | ||||
238 | def makeFrontendVisible(self,frontend): |
|
244 | def makeFrontendVisible(self,frontend): | |
239 | widgetIndex=self.tabWidget.indexOf(frontend) |
|
245 | widgetIndex=self.tabWidget.indexOf(frontend) | |
240 | if widgetIndex > 0 : |
|
246 | if widgetIndex > 0 : | |
@@ -969,6 +975,18 b' class IPythonQtConsoleApp(BaseIPythonApplication):' | |||||
969 |
|
975 | |||
970 | def init_window_shortcut(self): |
|
976 | def init_window_shortcut(self): | |
971 |
|
977 | |||
|
978 | self.prevTabAct = QtGui.QAction("Pre&vious Tab", | |||
|
979 | self.window, | |||
|
980 | shortcut="Ctrl+PgDown", | |||
|
981 | statusTip="Cahange to next tab", | |||
|
982 | triggered=self.window.prevTab) | |||
|
983 | ||||
|
984 | self.nextTabAct = QtGui.QAction("Ne&xt Tab", | |||
|
985 | self.window, | |||
|
986 | shortcut="Ctrl+PgUp", | |||
|
987 | statusTip="Cahange to next tab", | |||
|
988 | triggered=self.window.nextTab) | |||
|
989 | ||||
972 | self.fullScreenAct = QtGui.QAction("Full Screen", |
|
990 | self.fullScreenAct = QtGui.QAction("Full Screen", | |
973 | self.window, |
|
991 | self.window, | |
974 | shortcut="Ctrl+Meta+Space", |
|
992 | shortcut="Ctrl+Meta+Space", | |
@@ -1007,6 +1025,10 b' class IPythonQtConsoleApp(BaseIPythonApplication):' | |||||
1007 | triggered=self._open_online_help) |
|
1025 | triggered=self._open_online_help) | |
1008 |
|
1026 | |||
1009 | self.windowMenu = self.window.windowMenu |
|
1027 | self.windowMenu = self.window.windowMenu | |
|
1028 | ||||
|
1029 | self.windowMenu.addAction(self.nextTabAct) | |||
|
1030 | self.windowMenu.addAction(self.prevTabAct) | |||
|
1031 | self.windowMenu.addSeparator() | |||
1010 | self.windowMenu.addAction(self.minimizeAct) |
|
1032 | self.windowMenu.addAction(self.minimizeAct) | |
1011 | self.windowMenu.addAction(self.maximizeAct) |
|
1033 | self.windowMenu.addAction(self.maximizeAct) | |
1012 | self.windowMenu.addSeparator() |
|
1034 | self.windowMenu.addSeparator() |
General Comments 0
You need to be logged in to leave comments.
Login now