In PyGTK, what does gobject.type_register() do? The documentation merely says
registers the specified Python class as a PyGTK type
Well, duh. What does registering a class as a PyGtk type do?
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.
A PyGTK type can be used as the type of a PyGTK property. To be known to the GObject type system, a type has to be registered. I don’t think you actually have to call this function in PyGTK, it is probably done automatically when you call
__gobject_init__.Sometimes the PyGTK docs are too succinct. In that case you might want to read the C docs.