docs: def _erase_in_line(self, value):
          """
          Erases charachters in line.
          """
          initial_pos = self._cursor.position()
          if value == 0:
              # delete end of line
              self._cursor.movePosition(self._cursor.EndOfBlock, self._cursor.KeepAnchor)
          elif value == 1:
              # delete start of line
              self._cursor.movePosition(self._cursor.StartOfBlock, self._cursor.KeepAnchor)
          else:
              # delete whole line
              self._cursor.movePosition(self._cursor.StartOfBlock)
              self._cursor.movePosition(self._cursor.EndOfBlock, self._cursor.KeepAnchor)
          self._cursor.insertText(' ' * len(self._cursor.selectedText()))
          self._cursor.setPosition(initial_pos)
          self._text_edit.setTextCursor(self._cursor)
          self._last_cursor_pos = self._cursor.position()