I am using pygtk. I am not getting what is the difference between connect() and connect_object() in pygtk. Can somebody clarify me on this ?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As explained here,
connect_objectis used to replace the object passed to the callback method by default (which is the one that emitted the signal).For example,
Note: Usually in callback methods, you’ll be interested in the object that emitted the signal (the one passed by default), so
connect_objectisn’t used frequently.Edit: In addition to this, you’ll find here the following explanation: