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