[PyQt] QScintilla - is it possible to subclass (to replace paste
method)
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Oct 10 22:35:43 BST 2007
On Wednesday 10 October 2007, Brian Kelley wrote:
> 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.
paste() isn't called by QScintilla. There are probably lots of slots that
don't need to be virtual.
Phil
More information about the PyQt
mailing list