-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again :-)

Johan Dahlin wrote, On 28/09/04 10:51:

|>GtkMenu *menu = gtk_menu_new ();
|>pobj_menu = Py_BuildValue ("O", menu);
| This should do it:
| pymenu = pygobject_new(menu);
| PS. Don't forget to call init_pygtk() in the init function for your
| module.

You were totally right, while you wrote "pygobject_new(menu)", I read
"PyObject_New(menu)", hehe I should read more carefully.
I've added init_gtk(), for that I've had to add "#include
<pygtk/pygtk.h>" *before* adding pygobject.h (the linker goes crazy if
otherwise)

Thanks Johan :-)

- --
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://search.keyserver.net:11371/pks/lookup?op=get&search=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855  740C 8F98 3FCF 6AA5 4FC9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBWZrQj5g/z2qlT8kRAm2OAJ9w/xwHK7dh0JnG06x4lJrz5C8z+ACguSaw
QM4ipTnklICUn0lDP3Urk+I=
=lqqA
-----END PGP SIGNATURE-----
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to