Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

a few more deCamelCasification

  • Loading branch information...
commit 0c9f556c554e8dfff46a4869d4029074297574f0 1 parent dee94ca
@Carreau Carreau authored fperez committed
Showing with 7 additions and 7 deletions.
  1. +7 −7 IPython/frontend/qt/console/qtconsoleapp.py
View
14 IPython/frontend/qt/console/qtconsoleapp.py
@@ -142,7 +142,7 @@ def close_tab(self,current_tab):
return
#get a list of all wwidget not owning the kernel.
- slave_tabs=self.findSlavesTabs(closing_widget)
+ slave_tabs=self.find_slaves_tabs(closing_widget)
keepkernel = None #Use the prompt by default
if hasattr(closing_widget,'_keep_kernel_on_exit'): #set by exit magic
@@ -243,9 +243,9 @@ def prev_tab(self):
self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()-1))
def make_frontend_visible(self,frontend):
- widgetIndex=self.tab_widget.indexOf(frontend)
- if widgetIndex > 0 :
- self.tab_widget.setCurrentIndex(widgetIndex)
+ widget_index=self.tab_widget.indexOf(frontend)
+ if widget_index > 0 :
+ self.tab_widget.setCurrentIndex(widget_index)
def find_master_tab(self,tab,asList=False):
"""
@@ -289,7 +289,7 @@ def find_master_tab(self,tab,asList=False):
return masterWidget[0]
- def findSlavesTabs(self,tab):
+ def find_slaves_tabs(self,tab):
"""
Try to return all the frontend that do not own the kernel attached to the given widget/tab.
@@ -323,7 +323,7 @@ def findSlavesTabs(self,tab):
# MenuBar is always present on Mac Os, so let's populate it with possible
# action, don't do it on other platform as some user might not want the
# menu bar, or give them an option to remove it
- def initMenuBar(self):
+ def init_menu_bar(self):
#create menu in the order they should appear in the menu bar
self.fileMenu = self.menuBar().addMenu("&File")
self.editMenu = self.menuBar().addMenu("&Edit")
@@ -898,7 +898,7 @@ def init_qt_elements(self):
confirm_exit=self.confirm_exit)
self.window.log = self.log
self.window.add_tab_with_frontend(self.widget)
- self.window.initMenuBar()
+ self.window.init_menu_bar()
self.window.setWindowTitle('Python' if self.pure else 'IPython')
def init_colors(self):
Please sign in to comment.
Something went wrong with that request. Please try again.