[pygtk] get the version of gtk / pygtk used
Alessandro Dentella
sandro at e-den.it
Mon Jun 16 15:15:52 WST 2008
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
*:-)
More information about the pygtk
mailing list