[Sugar-devel] gtk.RadioToolButton active property not recognized

laurent bernabe laurent.bernabe at gmail.com
Thu May 19 02:36:45 EDT 2011


Thank you very much
=> i started the python interpreter, imported gtk and then i got, from
gtk.gtk_version command the tuple :
(2, 20, 1)

Regards

2011/5/19 James Cameron <quozl at laptop.org>

> On Wed, May 18, 2011 at 04:25:29PM +0200, laurent bernabe wrote:
> > + going to install pygtk2-doc package on my sugar : is the best way to
> > consult it is a text editor such as nano ?
>
> No.
>
> On a Debian derived system, the package name is python-gtk2-doc, and
> when it is installed the files can be listed with
>
>        dpkg --listfiles python-gtk2-doc
>
> There are example Python source files as well as reference and tutorial
> in HTML format.  To open the HTML documentation in a way that makes it
> easiest to use, start your web browser and navigate to the page
>
>        file:///usr/share/gtk-doc/html/pygtk/index.html
>
> For example
>
>        firefox file:///usr/share/gtk-doc/html/pygtk/index.html
>
> Regarding the version of GTK+ the advice I gave you was wrong ... I was
> asleep.  There was no reason for the -dev package to be present.  Try
> this:
>
>        dpkg-query -W -f='${Package} ${Version}\n' libgtk2.0\*
>
> Another way to find the version is with a Python program:
>
>        >>> print gtk.gtk_version
>        (2, 24, 3)
>
> And if you are writing code that depends on a particular version, you
> can call check_version
>
>        >>> gtk.check_version(2, 8, 0)
>        >>> gtk.check_version(0, 0, 0)
>        'Gtk+ version too new (major mismatch)'
>        >>> gtk.check_version(44,44,44)
>        'Gtk+ version too old (major mismatch)'
>
> --
> James Cameron
> http://quozl.linux.org.au/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110519/2c246158/attachment.html>


More information about the Sugar-devel mailing list