Features/GTK3/Porting

From Sugar Labs
< Features‎ | GTK3
Revision as of 03:01, 30 October 2011 by DanielDrake (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

To port PyGTK to PyGI, read this: https://live.gnome.org/PyGObject/IntrospectionPorting (especially the section abouut pygi-convert.sh)

If you are having trouble finding how a particular GTK class/method/constant has been named in PyGI, run pygi-enumerate.py and grep the output. (this app lists all identified methods and constants)

To document:

  • Gtk.Alignment() no longer has default parameters - specify all 4

Conversion script badness:

-        if self.orientation == gtk.ORIENTATION_HORIZONTAL:
+        if self.orientation == Gtk.ORIENTATION_HORIZONTAL:

should be Orientation.HORIZONTAL