Set the memo for the transaction to a new :class:`TextMemo
        <stellar_base.memo.TextMemo>`.

        :param memo_text: The text for the memo to add.
        :type memo_text: str, bytes
        :return: This builder instance.
195462
def add_text_memo(self, memo_text):
        
        memo_text = memo.TextMemo(memo_text)
        return self.add_memo(memo_text)
48180
def _add_text(self, text):
        
        if text:
            if self.pending_nodes:
                self.pending_nodes[-1].append(nodes.Text(text))
            else:
                self.new_nodes.append(nodes.Text(text))
270555
def append(self,text):
        
        if text is Text:
            text = Text(self, id=self.id + '.text.' + str(len(self.data)+1) )
        elif text is Speech:
            text = Speech(self, id=self.id + '.speech.' + str(len(self.data)+1) ) #pylint: disable=redefined-variable-type
        else:
            assert isinstance(text, Text) or isinstance(text, Speech)
        self.data.append(text)
        return text
260308
def insert_text(self, data, overwrite=False, move_cursor=True, fire_event=True):
        
        # Original text & cursor position.
        otext = self.text
        ocpos = self.cursor_position

        # In insert/text mode.
        if overwrite:
            # Don't overwrite the newline itself. Just before the line ending,
            # it should act like insert mode.
            overwritten_text = otext[ocpos:ocpos + len(data)]
            if '\n' in overwritten_text:
                overwritten_text = overwritten_text[:overwritten_text.find('\n')]

            self.text = otext[:ocpos] + data + otext[ocpos + len(overwritten_text):]
        else:
            self.text = otext[:ocpos] + data + otext[ocpos:]

        if move_cursor:
            self.cursor_position += len(data)

        # Fire 'on_text_insert' event.
        if fire_event:
            self.on_text_insert.fire()
812863
def set_text(self, text):
        
        log = logging.getLogger(self.cls_logger + '.set_text')
        if not isinstance(text, basestring):
            msg = 'text arg must be a string'
            log.error(msg)
            raise ValueError(msg)
        self.payload['text'] = text
        log.debug('Set message text to: {t}'.format(t=text))
344368
private MimePart createTextMimePart() throws MessagingException {
		MimePart bodyPart = new MimeBodyPart();
		bodyPart.setText(textPart);
		return bodyPart;
	}
855491
def append(self, text):
        
        cursor = QTextCursor(self._doc)
        cursor.movePosition(QTextCursor.End)
        cursor.insertBlock()
        cursor.insertText(text)
648319
def setnonce(self, text=None):
        
        if text is None:
            s = []
            s.append(self.username)
            s.append(self.password)
            s.append(Token.sysdate())
            m = md5()
            m.update(':'.join(s).encode("utf-8"))
            self.nonce = m.hexdigest()
        else:
            self.nonce = text
1077098
def add(self, sentence_text, **kwargs):
        '''  '''
        sent = MeCabSent.parse(sentence_text, **kwargs)
        self.sents.append(sent)
        return sent
623361
def of_text(self, text, encoding="utf-8"):
        
        m = self.hash_algo()
        m.update(text.encode(encoding))
        return self.digest(m)
1325804
def memo_update(self, tid, session, memo=None, flag=None, reset=None):
        ''''''
        request = TOPRequest('taobao.trade.memo.update')
        request['tid'] = tid
        if memo!=None: request['memo'] = memo
        if flag!=None: request['flag'] = flag
        if reset!=None: request['reset'] = reset
        self.create(self.execute(request, session)['trade'])
        return self
307114
def append_new_text(destination, text, join_str=None):
    
    if join_str is None:
        join_str = ' '
    if len(destination) > 0:  # Destination has children
        last = destination[-1]
        if last.tail is None:  # Last child has no tail
            last.tail = text
        else:  # Last child has a tail
            last.tail = join_str.join([last.tail, text])
    else:  # Destination has no children
        if destination.text is None:  # Destination has no text
            destination.text = text
        else:  # Destination has a text
            destination.text = join_str.join([destination.text, text])
1130802
def add_line(self, sentences, line_number=None):
        
        self.bytes += self.line(sentences, line_number)
842713
def build(self, text):
        
        super(Paragraph, self).build()
        self.content = text
369538
def transaction_context(self):
        """"""
        class DocumentModelTransaction:
            def __init__(self, document_model):
                self.__document_model = document_model

            def __enter__(self):
                self.__document_model.persistent_object_context.enter_write_delay(self.__document_model)
                return self

            def __exit__(self, type, value, traceback):
                self.__document_model.persistent_object_context.exit_write_delay(self.__document_model)
                self.__document_model.persistent_object_context.rewrite_item(self.__document_model)

        return DocumentModelTransaction(self)
681612
def set_reprompt_text(self, text):
        
        self.response.reprompt.outputSpeech.type = 'PlainText'
        self.response.reprompt.outputSpeech.text = text
913920
def add_text(self, text):
        
        for char in text:
            self.add_char(char)
        self.flush()