News for hackers. Stuff that matters.
Re:Say “no” to import side‐effects in Python by kzrdude on Saturday April 05, 2014 @01:00PM (#7537603)
well it doesn't really explain how to port from pygtk or how python classes interact with g-i.
Re:Say “no” to import side‐effects in Python by phaylon on Saturday April 05, 2014 @06:58PM (#7538804)
That is true, and unfortunately I have used Python only sparingly until now, and have no experience using PyGtk at all.

I took a quick look at PyGObject[0] (unsure if that is what one would actually use for this), and the most helpful part seems to be [1], giving some hints on extending GObject.Object, which should be translatable to extending other existing GObject type classes.

As for porting, I agree that can be a pain in that case. When bindings move from a manual implementation to inflating it from an external description. You often end up with good tutorials for the first, and good API reference for the second. If I need to understand other kinds of Gtk bindings, I search for examples on custom TreeModels or other potentially messy things like that to get a feel for it.

[0] https://wiki.gnome.org/action/show/Projects/PyGObject?action... [1] http://python-gtk-3-tutorial.readthedocs.org/en/latest/objec...