hello i need to intercept the return and the enter key in a plaintextedit and i 
have write this 
def keyPressEvent(self, event):
        self.plainTextEdit.keyPressEvent(event)
        if event.key()  == QtCore.Qt.Key_Return :
            print  ' return'
        elif event.key() == QtCore.Qt.Key_Enter :   
            print ' enter'

but the def keyPressEvent is called only if i press for ex blocnum and not 
when i push normal letter or return or enter.
Can you explain me how to do it

Thanks

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

Reply via email to