def _drag_hmtl ( self, html ): mime_data = QMimeData() mime_data.setHtml( html ) return mime_data
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)