I have tried to subclass QsciScintilla to make a custom paste method, while paste is a void virtual slot, this code seems to have no affect:

class PyScintilla(Qsci.QsciScintilla):
    def __init__(self, parent):
        Qsci.QsciScintilla.__init__(self, parent)

    def paste(self):
        # adjust the clipboard
        text = QApplication.clipboard()
        print text

This paste is not called by the subclass.

Thanks in advance.
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to