Thank you very much<br>=> i started the python interpreter, imported gtk and then i got, from gtk.gtk_version command the tuple :<br>(2, 20, 1)<br><br>Regards<br><br><div class="gmail_quote">2011/5/19 James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Wed, May 18, 2011 at 04:25:29PM +0200, laurent bernabe wrote:<br>
> + going to install pygtk2-doc package on my sugar : is the best way to<br>
<div class="im">> consult it is a text editor such as nano ?<br>
<br>
</div>No.<br>
<br>
On a Debian derived system, the package name is python-gtk2-doc, and<br>
when it is installed the files can be listed with<br>
<br>
dpkg --listfiles python-gtk2-doc<br>
<br>
There are example Python source files as well as reference and tutorial<br>
in HTML format. To open the HTML documentation in a way that makes it<br>
easiest to use, start your web browser and navigate to the page<br>
<br>
file:///usr/share/gtk-doc/html/pygtk/index.html<br>
<br>
For example<br>
<br>
firefox file:///usr/share/gtk-doc/html/pygtk/index.html<br>
<br>
Regarding the version of GTK+ the advice I gave you was wrong ... I was<br>
asleep. There was no reason for the -dev package to be present. Try<br>
this:<br>
<br>
dpkg-query -W -f='${Package} ${Version}\n' libgtk2.0\*<br>
<br>
Another way to find the version is with a Python program:<br>
<br>
>>> print gtk.gtk_version<br>
(2, 24, 3)<br>
<br>
And if you are writing code that depends on a particular version, you<br>
can call check_version<br>
<br>
>>> gtk.check_version(2, 8, 0)<br>
>>> gtk.check_version(0, 0, 0)<br>
'Gtk+ version too new (major mismatch)'<br>
>>> gtk.check_version(44,44,44)<br>
'Gtk+ version too old (major mismatch)'<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">James Cameron<br>
<a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
</div></div></blockquote></div><br>