예제 #1
0
    def _drag_hmtl ( self, html ):
        mime_data = QMimeData()
        mime_data.setHtml( html )

        return mime_data
예제 #2
-1
파일: pyside.py 프로젝트: spamalot/quichem
    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)