コード例 #1
0
ファイル: WebKitTextBox.py プロジェクト: JPtja/emesene
    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()
コード例 #2
0
ファイル: TextBox.py プロジェクト: fitoria/emesene
    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)
コード例 #3
0
    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)