Newbie in using event in pyqt

Let say I just want a keyPressEvent to happen with a certain QLineEdit

I tried :

self.myLineEDit.keyPressEvent = self.myEvent

def myEvent(self,event):
    print "Hello world"

Sure enought its working. Now it only print hello world when I am typing
in that line edit. But the problem is that the text I am typing does not
appear in the line edit. Only the printing of "Hello world" happend

What am I missing ?


-- 
  Hugo Léveillé
  TD Compositing, Vision Globale
  hu...@fastmail.net

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to