Difference between revisions of "Features/GTK3/Porting"

From Sugar Labs
< Features‎ | GTK3
Jump to navigation Jump to search
(Replaced content with "Replaced with https://github.com/sugarlabs/sugar-docs/blob/master/src/gtk3-porting-guide.md")
 
(71 intermediate revisions by 13 users not shown)
Line 1: Line 1:
To port PyGTK to PyGI, read this: https://live.gnome.org/PyGObject/IntrospectionPorting (especially the section abouut pygi-convert.sh)
+
Replaced with
 
+
https://github.com/sugarlabs/sugar-docs/blob/master/src/gtk3-porting-guide.md
If you are having trouble finding how a particular GTK class/method/constant has been named in PyGI, run [http://dev.laptop.org/~dsd/20110806/pygi-enumerate.py 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:
 
 
 
<pre>
 
-        if self.orientation == gtk.ORIENTATION_HORIZONTAL:
 
+        if self.orientation == Gtk.ORIENTATION_HORIZONTAL:
 
</pre>
 
 
 
should be Orientation.HORIZONTAL
 

Latest revision as of 03:16, 17 May 2018