parameters: (self, filename=None)
docstring: Create new buffer.
docstring_summary: Create new buffer.
docstring_tokens: Create new buffer .
function: def bufferCreate(self, filename=None):
          """Create new buffer."""
          if self._singlefile:
              self.bufferDestroy()
              notebook = EditorShellNotebook(parent=self,
                                             filename=filename)
              self.notebook = notebook
          else:
              notebook = EditorShellNotebook(parent=self.notebook,
                                             filename=filename)
          self.setEditor(notebook.editor)
          if not self._singlefile:
              self.notebook.AddPage(page=notebook, text=self.buffer.name,
                                    select=True)
          self.editor.setFocus()
function_tokens: def bufferCreate ( self , filename = None ) : if self . _singlefile : self . bufferDestroy ( ) notebook = EditorShellNotebook ( parent = self , filename = filename ) self . notebook = notebook else : notebook = EditorShellNotebook ( parent = self . notebook , filename = filename ) self . setEditor ( notebook . editor ) if not self . _singlefile : self . notebook . AddPage ( page = notebook , text = self . buffer . name , select = True ) self . editor . setFocus ( )