def append(self, text, cedict=None, scroll=True): '''append formatted text to the widget''' if not self.loaded: self._texts.append(text) return if not self.config or self.config.b_show_emoticons: text = MarkupParser.parse_emotes(text, cedict) text = text.replace('\r\n', '<br/>').replace('\n', '<br/>') text = self.parse_url(text) text = text.replace('"', '\\"') self._textbox.execute_script('add_message("%s");' % (text,)) if scroll: self.scroll_to_end()
def append(self, text, cedict,scroll=True): '''append formatted text to the widget''' if self.config.b_show_emoticons: text = MarkupParser.parse_emotes(text, cedict) TextBox.append(self, text, scroll)
def append(self, text, cedict,scroll=True): '''append formatted text to the widget''' if self.config.b_show_emoticons: text = MarkupParser.parse_emotes(text) TextBox.append(self, text, scroll)