On Wed, 2005-07-06 at 22:30 +0200, Nicolas Roman wrote:
> Hi folks !
>
> I've been using pygtk for a while now and like it cause it's made of python
> which I love and gtk+ which I love.
>
> Anyway, I am currently developping a small tool and would like this tool to
> be a
> pure gnome application. What must I do ? I've been googling around about pygtk
> gnome {documentation, tutorial, howto} but found nothing interesting.
>
> It's easy to find good documentation on developping gtk+ applications in
> python
> (pygtk reference, tutorial, FAQ, wiki, etc.) , but it's a bit more difficult
> to
> find documentation on developping gnome applications in python :-/
>
> Do I have to start with official C gnome doc and adapt it as much as I can to
> pygtk ? Or does anyone here knows where to find an up-to-date hello
> world/tutorial for python-gnome ?
A gnome app is a gtk+ app which uses a few extra gnome libraries. If
you want to support session management, use gnome.ui; if you want to
save application preferences, use gconf; if you want to access remote
files transparently, gnomevfs, etc. etc.
Gian Mario Tagliaretti has recently done a huge effort to document
some non-core gnome libraries; his docs are now online[1]. In any case,
reading the C docs helps a lot, since translation to python is usually
straightforward (though there are exceptions).
I tried to make a sample python gnome application [2], but it focuses
more on setting up the autotools infrastructure and i18n than on
demonstrating gnome APIs. OTOH, gnome-python and gnome-python-extras
source packages ship with a few examples.
Finally, take profit of the extreme readability of Python code and try
looking at real-world examples like Revelation and gnome-osd.
Good luck...
[1] http://pygtk.org/reference.html
[2] http://cvs.gnome.org/viewcvs/gnome-python/pygnome-hello/
--
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/