[pygtk] A few questions

Pietro Battiston toobaz at email.it
Wed Sep 2 22:41:00 WST 2009


Il giorno mer, 02/09/2009 alle 14.59 +0200, Michael Hansen ha scritto:
> Hello there!
> 
> I have a few questions about the project:
> 
> 1. Why is the PyGTK project released as 3 separate packages, if you need them all to get Python scripts working?

Because they are 3 separate projects, which provide bindings for 3
separate C libraries. Though their gtk counterparts for Windows have
been bundled together in the "GTK+ bundle", as far as I know (but I'm
not an expert in the field) nobody did a bundle for pygtk.

(I'm assuming you use Windows because in (almost) any Linux distro, the
dependencies system takes care of installing the needed dependencies, so
this is not an issue).

> 
> 2. Are there any intentions to integrate this project into GIMP to provide native support for Python? Or will it always stay as a seperate project? I am just asking because of the fact, that more and more GIMP scripts are written in Python, so that it would theoretically make sense.

It wouldn't thoretically make sense for pygtk to "live" into GIMP: maybe
the original meaning of "gtk", which is "the Gimp ToolKit", gave you a
biased impression: gtk - and similarly pygtk - is a project which now
has (reached) the target of being a library of much broader scope than
just providing a GUI to the gimp. So I'd say yes, it will always stay as
a separate project.

However, python _does_ partially integrate pygtk, since gimp-python
plugins use it for the graphic interface.

Given that gimp is a C program, I can't imagine any support more
"native" than that...


> 
> 3. Is it necessary to use the installer or would it be enough just to extract all needed files into the Pythonxx\Lib\site-packages directory?
> And if that's possible, it would be great, if you could also offer zip-packages besides the installers.

I think I remember it's enough to extract all needed files in the right
folders... but I frankly don't see the utility of .zip files (on the
contrary, I seem to remember that manually installing files was a pain).

Pietro Battiston



More information about the pygtk mailing list