On Wed, Feb 19, 2003 at 04:36:41AM -0500, Eric S. Raymond wrote:
> This is a report of bugs in Glade 0.6.4 (and possibly libglade 0.17)
> under Red Hat 8.0.  I observed them while my friend Rob Landley and I

Well, from the content of the message (which is a tad confusing) we're
able to understand that this is not true - you are using PyGTK2, and
libglade2.

> The PyGTK docs at <http://www.gnome.org/~james/pygtk-docs/>.  Generated
> from the C documentation, and (as the author notes) both incorrect and
> incomplete.

Well, they aren't too incorrect and incomplete, and you'll be thankful
you are using PyGTK2 because that's what these docs were written for :-)

> The PyGnome/PyGTK/Libglade Tutorial at
> <http://sjbrown.geeky.net/metagame-sector/tutorial.html>, with its
> actively misleading example code.

It's unfriendly at least to make a first [cross]-post to a list with
this sort of remark. Shandy wrote this as a volunteer, and it covers
PyGTK-0.x, so of course it won't apply to your code.

The real culprit is the fact that the `gtk' module namespace is the same
for both pygtk2 and 1; this has been a source of endless confusion and
I've decried it before. I won't post any Redhat conspiracy theories<tm>
here, though.

[Maybe it's still time for us to consider doing the gtk -> gtk2 switch
as Thomas Leonard originally proposed... J*?]

> We're not just bitching about the docs without being willing to pitch
> in.  Rob has started work on a Python-and-Glade tutorial, so what we
> learn from experience and the answers to these reports will go into that.

Great. I'd like to point out two nice resources that we have:

    - The PyGTK FAQ, which is linked to at the bottom of this message.

    - John Finlay's tutorial at http://www.moeraki.com/pygtktutorial/

    John has made both PyGTK-0.X and 1.99/2.x versions, and they are
    quite comprehensive. I suspect you can get a lot of great
    information from there.

The FAQ is a regular faqwiz document, so you can pitch in easily by
adding new entries. If you're interested, email me for the FAQ password.

> Glade bugs, in decreasing severity order:

[... snip Glade bugs...]

Remember, bugs should be reported to bugzilla.gnome.org. It's convenient
to have them posted to a mailing list, but the massive number of bugs
that open all the time really makes Bugzilla the right place to file
them.

There's a Glade component. Don't forget to check the About... box to see
what version you're using.

> libglade/gtk bugs (?):
> 
> 1. When I run my code, I get 16 repetitions of the following message:
> 
> (oakum.py:822): libglade-WARNING **: unknown property `stock_item' for class 
> `GtkImageMenuItem'
> 
>    What is going on here?  Where did that bogus large line number come from?
>    What is `stock_item', what do I have to do about it, and why does none of
>    the existing documentation mention this issue?  In general, how do I trace
>    these runtime messages back to a problem I can fix?

Well, this is a bit tricky. The libglade fragment that triggers this
seems to be setting a stock_item property to GtkImageMenuItem, but
either the wrapper is broken or your version of libglade doesn't support
it. Let me see here..

    http://bugzilla.gnome.org/show_bug.cgi?id=83328

Might be related to your problem. I wonder if the glade version you are
using is really up-to-date with the libglade version. I hate to say
this, but Redhat really ships with an old version of PyGTK - they jumped
the gun with 8.0 IMHO - so it would be nice if you could try with the
latest released versions. CVS would be even better.

> The combination of Glade and Python looks like it has the potential to be an
> amazingly powerful tool.  Once the rough edges are smoothed a bit...

There are a *lot* of rough edges, the trickiest one being lack of
documentation. I started the PyGTK FAQ to improve things somewhat, but
we really need to tackle the issue of reference documentation. Johan has
been actively inciting us to get this done properly, and maybe James has
a breather now and can suggest the Right Way to do it.

> FYI, our intention is to build a GUI configuration editor that will allow 
> end-users to hack DNS zone configurations without shooting themselves
> in the foot or having to comprehend zone file syntax.

It's a cool project - I simply hate managing BIND entries, though I do
so pretty often. Let us know if you need any extra help.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
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