Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

decamelcasify: 3 more changes

  • Loading branch information...
commit f7c8a997d565559b9d5c4652d57159931fc09144 1 parent e73f585
@Carreau Carreau authored fperez committed
Showing with 12 additions and 12 deletions.
  1. +12 −12 IPython/frontend/qt/console/qtconsoleapp.py
View
24 IPython/frontend/qt/console/qtconsoleapp.py
@@ -97,9 +97,9 @@ def __init__(self, app, frontend, existing=False, may_close=True,
self.tab_widget.tabCloseRequested[int].connect(self.close_tab)
self.setCentralWidget(self.tab_widget)
- self.updateTabBarVisibility()
+ self.update_tab_bar_visibility()
- def updateTabBarVisibility(self):
+ def update_tab_bar_visibility(self):
""" update visibility of the tabBar depending of the number of tab
0 or 1 tab, tabBar hidden
@@ -223,7 +223,7 @@ def close_tab(self,currentTab):
self.tab_widget.removeTab(self.tab_widget.indexOf(slave))
self.tab_widget.removeTab(currentTab)
kernel_manager.shutdown_kernel()
- self.updateTabBarVisibility()
+ self.update_tab_bar_visibility()
def addTabWithFrontend(self,frontend,name=None):
""" insert a tab with a given frontend in the tab bar, and give it a name
@@ -232,14 +232,14 @@ def addTabWithFrontend(self,frontend,name=None):
if not name:
name=str('kernel '+str(self.tab_widget.count()))
self.tab_widget.addTab(frontend,name)
- self.updateTabBarVisibility()
+ self.update_tab_bar_visibility()
self.makeFrontendVisible(frontend)
frontend.exit_requested.connect(self.close_tab)
- def nextTab(self):
+ def next_tab(self):
self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()+1))
- def prevTab(self):
+ def prev_tab(self):
self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()-1))
def makeFrontendVisible(self,frontend):
@@ -976,17 +976,17 @@ def initialize(self, argv=None):
def init_window_shortcut(self):
- self.prevTabAct = QtGui.QAction("Pre&vious Tab",
+ self.prev_tab_act = QtGui.QAction("Pre&vious Tab",
self.window,
shortcut="Ctrl+PgDown",
statusTip="Cahange to next tab",
- triggered=self.window.prevTab)
+ triggered=self.window.prev_tab)
- self.nextTabAct = QtGui.QAction("Ne&xt Tab",
+ self.next_tab_act = QtGui.QAction("Ne&xt Tab",
self.window,
shortcut="Ctrl+PgUp",
statusTip="Cahange to next tab",
- triggered=self.window.nextTab)
+ triggered=self.window.next_tab)
self.fullScreenAct = QtGui.QAction("&Full Screen",
self.window,
@@ -1027,8 +1027,8 @@ def init_window_shortcut(self):
self.windowMenu = self.window.windowMenu
- self.windowMenu.addAction(self.nextTabAct)
- self.windowMenu.addAction(self.prevTabAct)
+ self.windowMenu.addAction(self.next_tab_act)
+ self.windowMenu.addAction(self.prev_tab_act)
self.windowMenu.addSeparator()
self.windowMenu.addAction(self.minimizeAct)
self.windowMenu.addAction(self.maximizeAct)
Please sign in to comment.
Something went wrong with that request. Please try again.