On Sun, Jun 15, 2008 at 11:50:42PM -0700, awalter1 wrote:
> 
> Hi,
> I'm working with Linux RedHat EL4.
> a version of gtk+ was installed with the release RedHat : "rpm -qa" returns
> this version.
> Others more recente versions of gtk+ have been installed from sources : not
> recognize from rpm.
> Same things for pygtk.
> 
> My application is written in python.
> 
> How to know which versions of gtk+/pygtk is used by my application ?

here http://www.daa.com.au/pipermail/pygtk/2008-May/015293.html (read also
following messages) you find the answer as:

$ python
>>> import gtk
>>> [x for x in dir(gtk) if "ver" in x]
['check_version', 'gtk_version', 'pygtk_version', 'ver']
>>> gtk.gtk_version
(2, 10, 4)
>>> gtk.pygtk_version
(2, 10, 1)
>>> gtk.ver
(2, 12, 1)

I personnally don't know what is gtk.ver, while the gtk.gtk_version is
documented here
http://www.pygtk.org/docs/pygtk/gtk-constants.html#gtk-version-constants 

sandro
*:-)
_______________________________________________
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