[pygtk] Re: ANNOUNCE: GnomePython 2.12.1

Germán Poó Caamaño gpoo at ubiobio.cl
Tue Oct 4 02:58:57 WST 2005


Le lundi 03 octobre 2005 à 09:41 -0700, Rich Burridge a écrit :
> Johan Dahlin wrote:
> 
> > This is found as gtk.glade
> 
> Thanks (and to Germán who also mentioned it).
> 
> > 
> >>   "import pygtk"                  External
> > 
> > 
> > You also have: gtk.keysyms, gtk.gdk and gtk.compat (for some 
> > compatilibity with ancient versions)
> > 
> > Not needed, only a wrapper for handling multiple installed versions.
> > 
> > Note that some parts of the documentation still needs to be written,
> > atk is completely missing for instance.
> 
> Okay.
> 
> >> What I don't seem to be able to find is the equivalent for PyORBIT
> >> or gnome-python. I've just downloaded the source tarball at:
> > 
> > 
> > There's as far as I know no documentation for gnome-python or pyorbit.
> > 
> > The easiest way to get a list of APIs is to write a script which goes
> > through all the modules and introspects them (using 
> > dir/getattr/isinstance).
> 
> Thanks. Germán can up with something else that I think will work nicely:
> 
>  > In python is possible to try:
>  >
>  > >>>import gconf
>  > >>>help(gconf)
> 
> I will also be able to do this for the PyGtk doc and bring it all
> into files in the architecture project case directory (thereby making
> a snapshot of the actual documentation).

Answering here what you asked to me in another mail:

> Actually, this is perfect.  My Python skills are limited, so
> can you tell me is there an easy way to get it to do 
> "help(<module > name>)" and redirect the output to a file?

Using the old's Unix school script ;-)

$ cat test-help.py
#!/usr/bin/env python

import gconf
import gnome
import gnome.ui
import gnomecanvas
import gnomevfs
import bonobo
import bonobo.ui
import bonobo.activation

help(gconf)
help(gnome)
help(gnome.ui)
help(gnomecanvas)
help(gnomevfs)
help(bonobo)
help(bonobo.ui)
help(bonobo.activation)

And then:
$ ./test-help.py > python-gnome-api.txt

Regards,

-- 
Germán Poó Caamaño
http://www.ubiobio.cl/~gpoo/



More information about the pygtk mailing list