Difference between revisions of "Features/GTK3/Porting"
Jump to navigation
Jump to search
DanielDrake (talk | contribs) |
(stub for activity developer notes) |
||
Line 14: | Line 14: | ||
should be Orientation.HORIZONTAL | should be Orientation.HORIZONTAL | ||
+ | |||
+ | == Tips to Activity Developers == | ||
+ | |||
+ | '''this is just a stub''' | ||
+ | |||
+ | * GTK-3 does not support Drawable, so the first step is to get your activity running under Cairo. | ||
+ | :* Example: abacus-cairo | ||
+ | :* Example: abacus-gtk3 | ||
+ | * The conversion script (here) leaves a few things to be done by hand: | ||
+ | :* Notes from conversion from abacus-cairo to abacus-gtk3 | ||
+ | |||
+ | * Notes from the TurtleArt conversion | ||
+ | * Removing Hippo |
Revision as of 11:28, 1 November 2011
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
Tips to Activity Developers
this is just a stub
- GTK-3 does not support Drawable, so the first step is to get your activity running under Cairo.
- Example: abacus-cairo
- Example: abacus-gtk3
- The conversion script (here) leaves a few things to be done by hand:
- Notes from conversion from abacus-cairo to abacus-gtk3
- Notes from the TurtleArt conversion
- Removing Hippo