[Sugar-devel] gtk.RadioToolButton active property not recognized
James Cameron
quozl at laptop.org
Wed May 18 19:14:50 EDT 2011
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/
More information about the Sugar-devel
mailing list