Re: [pygtk] pygtk and pygnome documentation

2001-11-13 Thread Skip Montanaro


John Thanks for the tips on learning pygtk. It sounds like there is no
John documentation on pygtk or pygnome other than the source code.

In reality, I rarely need to look at the PyGtk source, and most of that is
when I want to change something.  The wrappers are designed to create a
more-or-less one-to-one mapping of the Gtk API, so most of the time, the
correct place to look is the Gtk documentation.  That said, I frequently use
dir() to see what methods, functions and data attributes are exposed (some
aren't for a variety of reasons).

Because the gtk and gtk.gdk modules contain so many symbols, I wrote a
dirpat method for interactive use that allows me to filter symbols based
upon regular expressions:

def dirpat(o, pat):
like dir, but only return strings matching re pat
import re
names = dir(o)
pat = re.compile(pat)
return [x for x in names if pat.search(x) is not None]

You may find this helpful.

-- 
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: [pygtk] pygtk and pygnome documentation

2001-11-12 Thread John Finlay

Kwan,

Thanks for the tips on learning pygtk. It sounds like there is no
documentation on pygtk or pygnome other than the source code.

John

Lee, Kwan wrote:

 You will have to start with

 /usr/share/docs/pygtk-0.6.8/examples or something like that...  there are
 some samples.  Then you will have to start digging through gtk+ docs in
 http://www.gtk.org

 pygtk provides most of the mappings for GTK and you can look at gtk.py to
 see what's provided.  I basically go through online GTK doc and gtk.py to
 figure how to make pygtk work for me.

 -kwan

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