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."""
          buffer = Buffer()
          panel = wx.Panel(parent=self.notebook, id=-1)
          panel.Bind(wx.EVT_ERASE_BACKGROUND, lambda x: x)        
          editor = Editor(parent=panel)
          panel.editor = editor
          sizer = wx.BoxSizer(wx.VERTICAL)
          sizer.Add(editor.window, 1, wx.EXPAND)
          panel.SetSizer(sizer)
          panel.SetAutoLayout(True)
          sizer.Layout()
          buffer.addEditor(editor)
          buffer.open(filename)
          self.setEditor(editor)
          self.notebook.AddPage(page=panel, text=self.buffer.name, select=True)
          self.editor.setFocus()
function_tokens: def bufferCreate ( self , filename = None ) : buffer = Buffer ( ) panel = wx . Panel ( parent = self . notebook , id = - 1 ) panel . Bind ( wx . EVT_ERASE_BACKGROUND , lambda x : x ) editor = Editor ( parent = panel ) panel . editor = editor sizer = wx . BoxSizer ( wx . VERTICAL ) sizer . Add ( editor . window , 1 , wx . EXPAND ) panel . SetSizer ( sizer ) panel . SetAutoLayout ( True ) sizer . Layout ( ) buffer . addEditor ( editor ) buffer . open ( filename ) self . setEditor ( editor ) self . notebook . AddPage ( page = panel , text = self . buffer . name , select = True ) self . editor . setFocus ( )