On Mon, Oct 27, 2003 at 10:30:30AM +0100, Antoon Pardon wrote:
> Well I looked a the FAQ, but my problem is that the
> FAQ seems to be inconsistent with the documentation
> at http://www.gnome.org/~james/pygtk-docs/class-gdkcolormap.html.
Which FAQ, 4.8?
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq04.008.htp
You're right that it's a bit confusing. To be honest, though, you're
looking at the "old" documentation; you should really be looking at John
Finlay's reference:
http://www.moeraki.com/pygtkreference/pygtk2reference/class-gdkcolormap.html
> The FAQ suggest that the returntype of map.alloc_color is a GdkColor,
> while the documentation says the return type is a gboolean.
The documentation at ~james is incorrect; it indeed returns a gdk.Color.
> Then to add to the confusion I browsed through a gtk2 program lately
> where the argument to the map.alloc_color are three numbers, which
> differs from both the FAQ and the documentation.
You'll find that this form is also correct; it's the third form of
calling alloc_color.
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/