Permalink
Browse files

decamelcasify : closeTab close_tab

  • Loading branch information...
1 parent 58ef988 commit e73f5857f856e8d3e1928051a25b736835767934 @Carreau Carreau committed with fperez Oct 11, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 IPython/frontend/qt/console/qtconsoleapp.py
@@ -94,7 +94,7 @@ def __init__(self, app, frontend, existing=False, may_close=True,
self.tab_widget = QtGui.QTabWidget(self)
self.tab_widget.setDocumentMode(True)
self.tab_widget.setTabsClosable(True)
- self.tab_widget.tabCloseRequested[int].connect(self.closeTab)
+ self.tab_widget.tabCloseRequested[int].connect(self.close_tab)
self.setCentralWidget(self.tab_widget)
self.updateTabBarVisibility()
@@ -120,7 +120,7 @@ def updateTabBarVisibility(self):
def activeFrontend(self):
return self.tab_widget.currentWidget()
- def closeTab(self,currentTab):
+ def close_tab(self,currentTab):
""" Called when you need to try to close a tab.
It takes the number of the tab to be closed as argument, or a referece
@@ -234,7 +234,7 @@ def addTabWithFrontend(self,frontend,name=None):
self.tab_widget.addTab(frontend,name)
self.updateTabBarVisibility()
self.makeFrontendVisible(frontend)
- frontend.exit_requested.connect(self.closeTab)
+ frontend.exit_requested.connect(self.close_tab)
def nextTab(self):
self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()+1))
@@ -530,7 +530,7 @@ def closeEvent(self, event):
# Do Not loop on the widget count as it change while closing
widgetList=[ self.tab_widget.widget(i) for i in range(self.tab_widget.count())]
for widget in widgetList:
- self.closeTab(widget)
+ self.close_tab(widget)
event.accept()
#-----------------------------------------------------------------------------

0 comments on commit e73f585

Please sign in to comment.