FAQ Index - Search - Recent Changes - Everything - Add entry

<< Previous Entry | FAQ Entry 3.10 | Next Entry >>

3.10. How do I specify user data to a signal?

Easy:

 widget.connect("my_signal", handler, userdata [, ...])
As you can see, you can pass as many items as userdata; the function will receive the same number of user data arguments.

PyGTK FAQ Wizard | PyGTK Homepage | Feedback to faq at pygtk.org