(pyqt) Parameters when connecting a signal to a method?

exhuma.twn exhuma at gmail.com
Mon Sep 24 10:35:58 EDT 2007


Some code:

----------------------------------------------------------------------

def foobar(w):
   print w

QtCore.QObject,connect( my_line_edit,
QtCore.SIGNAL("returnPressed()"), foobar )

----------------------------------------------------------------------


How can I get this to work so "foobar" prints out the sender of the
signal (i.e. my_line_edit)?




More information about the Python-list mailing list