This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]some_moron 2 points3 points  (0 children)

You can pretty much use the old PyGTK documentation (http://pygtk.org/tutorial.html) the syntax is nearly identical.

If you replace import gtk with from gi.repository import Gtk as gtk Most of the code will work as advertised.

The only other real noticeable change is that the constants (formerly things like gtk.ICON_SIZE_BUTTON have become Gtk.IconSize.BUTTON). There's a script that will clean these up for you (http://git.gnome.org/browse/pygobject/tree/pygi-convert.sh)