Esempio n. 1
0
    def _drag_hmtl ( self, html ):
        mime_data = QMimeData()
        mime_data.setHtml( html )

        return mime_data
Esempio n. 2
-1
    def set_clipboard_html(self):
        """Place the HTML displayed in the HTML view widget into the
        system clipboard.

        """
        data = QMimeData()
        data.setText(self.plain)
        data.setHtml(self.html)
        QApplication.clipboard().setMimeData(data)