def paste(self):
        """
        Pastes text from the clipboard into this edit.
        """
        html = QApplication.clipboard().text()
        if not self.isRichTextEditEnabled():
            self.insertPlainText(projex.text.toAscii(html))
        else:
            super(XTextEdit, self).paste()
def paste ( self ) : html = QApplication . clipboard ( ) . text ( ) if not self . isRichTextEditEnabled ( ) : self . insertPlainText ( projex . text . toAscii ( html ) ) else : super ( XTextEdit , self ) . paste ( )
Pastes text from the clipboard into this edit.