parameters: (self, before=False, repeat=1)
docstring: Paste text
  
          If there's selection, the pasted text replaces it
  
          If text to be pasted ends with EOL it's assumed to be a line, and is
          pasted on a new line below the current line, or if the before keyword
          is set to True, then it's pasted on a new line above the current line
docstring_summary: Paste text
docstring_tokens: Paste text
function: def Put(self, before=False, repeat=1):
          """Paste text
  
          If there's selection, the pasted text replaces it
  
          If text to be pasted ends with EOL it's assumed to be a line, and is
          pasted on a new line below the current line, or if the before keyword
          is set to True, then it's pasted on a new line above the current line
  
          """
          text = ebmlib.Clipboard.Get()
          if not text:
              return
  
          bIsLine = self._IsLine(text)
          if bIsLine:
              self.GotoLineStart()
              if not before:
                  self.MoveDown()
  
          self.BeginUndoAction()
          if self.HasSelection():
              # paste over selection, if any
              self.stc.Clear()
          elif not bIsLine:
              self.stc.CharRight()
  
          for i in range(repeat):
              self.InsertText(text)
          self.EndUndoAction()
function_tokens: def Put ( self , before = False , repeat = 1 ) : text = ebmlib . Clipboard . Get ( ) if not text : return bIsLine = self . _IsLine ( text ) if bIsLine : self . GotoLineStart ( ) if not before : self . MoveDown ( ) self . BeginUndoAction ( ) if self . HasSelection ( ) : # paste over selection, if any self . stc . Clear ( ) elif not bIsLine : self . stc . CharRight ( ) for i in range ( repeat ) : self . InsertText ( text ) self . EndUndoAction ( )