##// END OF EJS Templates
a few more deCamelCasification
Matthias BUSSONNIER -
Show More
@@ -142,7 +142,7 b' class MainWindow(QtGui.QMainWindow):'
142 142 return
143 143
144 144 #get a list of all wwidget not owning the kernel.
145 slave_tabs=self.findSlavesTabs(closing_widget)
145 slave_tabs=self.find_slaves_tabs(closing_widget)
146 146
147 147 keepkernel = None #Use the prompt by default
148 148 if hasattr(closing_widget,'_keep_kernel_on_exit'): #set by exit magic
@@ -243,9 +243,9 b' class MainWindow(QtGui.QMainWindow):'
243 243 self.tab_widget.setCurrentIndex((self.tab_widget.currentIndex()-1))
244 244
245 245 def make_frontend_visible(self,frontend):
246 widgetIndex=self.tab_widget.indexOf(frontend)
247 if widgetIndex > 0 :
248 self.tab_widget.setCurrentIndex(widgetIndex)
246 widget_index=self.tab_widget.indexOf(frontend)
247 if widget_index > 0 :
248 self.tab_widget.setCurrentIndex(widget_index)
249 249
250 250 def find_master_tab(self,tab,asList=False):
251 251 """
@@ -289,7 +289,7 b' class MainWindow(QtGui.QMainWindow):'
289 289
290 290 return masterWidget[0]
291 291
292 def findSlavesTabs(self,tab):
292 def find_slaves_tabs(self,tab):
293 293 """
294 294 Try to return all the frontend that do not own the kernel attached to the given widget/tab.
295 295
@@ -323,7 +323,7 b' class MainWindow(QtGui.QMainWindow):'
323 323 # MenuBar is always present on Mac Os, so let's populate it with possible
324 324 # action, don't do it on other platform as some user might not want the
325 325 # menu bar, or give them an option to remove it
326 def initMenuBar(self):
326 def init_menu_bar(self):
327 327 #create menu in the order they should appear in the menu bar
328 328 self.fileMenu = self.menuBar().addMenu("&File")
329 329 self.editMenu = self.menuBar().addMenu("&Edit")
@@ -898,7 +898,7 b' class IPythonQtConsoleApp(BaseIPythonApplication):'
898 898 confirm_exit=self.confirm_exit)
899 899 self.window.log = self.log
900 900 self.window.add_tab_with_frontend(self.widget)
901 self.window.initMenuBar()
901 self.window.init_menu_bar()
902 902 self.window.setWindowTitle('Python' if self.pure else 'IPython')
903 903
904 904 def init_colors(self):
General Comments 0
You need to be logged in to leave comments. Login now