I have just added support for loading constant values from the GType
system (the pyg_enum_add_constants and pyg_flags_add_constants functions
in gobjectmodule.c).

The code generator now generates calls to these functions.  There is no
longer a "from GTK import *" line in gtk.__init__, instead it relies on
the constant values in the gtk._gtk module.

The gdk constants are now available in gtk.gdk (except for the keysym
values), and pango ones in pango module.

This code should make sure that constants are not left out, and they use
the values GTK expects them to have, which should reduce mismatch
problems.

Currently there are 3 critical warnings printed when importing gtk now,
but you can safely ignore them.  I am looking at fixing them.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to