[PyQt] QScintilla - is it possible to subclass (to replace paste method)

Brian Kelley kelley at eyesopen.com
Wed Oct 10 18:30:48 BST 2007


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.


More information about the PyQt mailing list