[pygtk] reference: pygtk-gtkcellrendererspinner.xml: new in PyGTK 2.22
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk] reference: pygtk-gtkcellrendererspinner.xml: new in PyGTK 2.22
- Date: Thu, 10 Mar 2011 21:15:34 +0000 (UTC)
commit ed423625a77ac762c446ddb05b7e87efb2982b6c
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Sat Feb 19 20:07:55 2011 +0100
reference: pygtk-gtkcellrendererspinner.xml: new in PyGTK 2.22
docs/Makefile.am | 2 +
docs/reference/pygtk-gtk-classes.xml | 1 +
docs/reference/pygtk-gtkcellrendererspinner.xml | 129 +++++++++++++++++++++++
3 files changed, 132 insertions(+), 0 deletions(-)
---
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 904777f..eb82d61 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -93,6 +93,7 @@ XMLFILES = \
reference/pygtk-gtkcellrendererpixbuf.xml \
reference/pygtk-gtkcellrendererprogress.xml \
reference/pygtk-gtkcellrendererspin.xml \
+ reference/pygtk-gtkcellrendererspinner.xml \
reference/pygtk-gtkcellrenderertext.xml \
reference/pygtk-gtkcellrenderertoggle.xml \
reference/pygtk-gtkcellrenderer.xml \
@@ -378,6 +379,7 @@ HTML_FILES = \
html/class-gtkcellrendererpixbuf.html \
html/class-gtkcellrendererprogress.html \
html/class-gtkcellrendererspin.html \
+ html/class-gtkcellrendererspinner.html \
html/class-gtkcellrenderertext.html \
html/class-gtkcellrenderertoggle.html \
html/class-gtkcellview.html \
diff --git a/docs/reference/pygtk-gtk-classes.xml b/docs/reference/pygtk-gtk-classes.xml
index aad89ff..ef1adff 100644
--- a/docs/reference/pygtk-gtk-classes.xml
+++ b/docs/reference/pygtk-gtk-classes.xml
@@ -35,6 +35,7 @@
<xi:include href="pygtk-gtkcellrendererpixbuf.xml"/>
<xi:include href="pygtk-gtkcellrendererprogress.xml"/>
<xi:include href="pygtk-gtkcellrendererspin.xml"/>
+ <xi:include href="pygtk-gtkcellrendererspinner.xml"/>
<xi:include href="pygtk-gtkcellrenderertext.xml"/>
<xi:include href="pygtk-gtkcellrenderertoggle.xml"/>
<xi:include href="pygtk-gtkcellview.xml"/>
diff --git a/docs/reference/pygtk-gtkcellrendererspinner.xml b/docs/reference/pygtk-gtkcellrendererspinner.xml
new file mode 100644
index 0000000..b395f5b
--- /dev/null
+++ b/docs/reference/pygtk-gtkcellrendererspinner.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+
+<refentry id="class-gtkcellrendererspinner">
+
+ <refnamediv>
+ <refname>gtk.CellRendererSpinner</refname>
+ <refpurpose>an object that renders a spinning animation in a cell (new in PyGTK 2.22)</refpurpose>
+ </refnamediv>
+
+ <refsect1>
+ <title>Synopsis</title>
+
+ <classsynopsis language="python">
+ <ooclass><classname>gtk.CellRendererSpinner</classname></ooclass>
+ <ooclass><classname><link linkend="class-gtkcellrenderer">gtk.CellRenderer</link></classname></ooclass>
+ <constructorsynopsis language="python">
+ <methodname><link linkend="constructor-gtkcellrendererspinner">gtk.CellRendererSpinner</link></methodname>
+ <methodparam></methodparam>
+ </constructorsynopsis>
+</classsynopsis>
+
+ </refsect1>
+
+ <refsect1>
+ <title>Ancestry</title>
+
+<synopsis>+-- <link linkend="class-gobject">gobject.GObject</link>
+ +-- <link linkend="class-gtkobject">gtk.Object</link>
+ +-- <link linkend="class-gtkcellrenderer">gtk.CellRenderer</link>
+ +-- <link linkend="class-gtkcellrendererspinner">gtk.CellRendererSpinner</link>
+</synopsis>
+
+ </refsect1>
+
+ <refsect1 id="properties-gtkcellrendererspinner">
+ <title>gtk.CellRendererSpinner Properties</title>
+
+ <para><link linkend="properties-gtkobject">gtk.Object Properties</link></para>
+ <para><link linkend="properties-gtkcellrenderer">gtk.CellRenderer Properties</link></para>
+ <para><link linkend="properties-gtkcellrenderertext">gtk.CellRendererText Properties</link></para>
+
+ <blockquote role="properties">
+ <informaltable pgwide="1" frame="none">
+ <tgroup cols="3">
+ <colspec column="1" colwidth="1in"/>
+ <colspec column="2" colwidth="1in"/>
+ <colspec column="3" colwidth="4in"/>
+ <tbody>
+
+ <row valign="top">
+ <entry>"active"</entry>
+ <entry>Read-Write</entry>
+ <entry>Wheter the spinner is active (ie. shown) in the cell. Default value: <literal>False</literal></entry>
+ </row>
+
+ <row valign="top">
+ <entry>"pulse"</entry>
+ <entry>Read-Write</entry>
+ <entry>Pulse of the spinner. Increment this value to draw the next frame of the spinner animation. Usually, you would update this value in a timeout. Default value: 0</entry>
+ </row>
+
+ <row valign="top">
+ <entry>"size"</entry>
+ <entry>Read-Write</entry>
+ <entry>The gtk.IconSize value that specifies the size of the renderer spinner. Default value: gtk.ICON_SIZE_MENU</entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </blockquote>
+
+ </refsect1>
+
+ <refsect1 id="signal-prototypes-gtkcellrendererspinner">
+ <title>gtk.CellRendererSpin Signal Prototypes</title>
+
+ <para><link linkend="signal-prototypes-gobject">gobject.GObject Signal Prototypes</link></para>
+ <para><link linkend="signal-prototypes-gtkobject">gtk.Object Signal Prototypes</link></para>
+ <para><link linkend="signal-prototypes-gtkcellrenderer">gtk.CellRenderer Signal Prototypes</link></para>
+</refsect1>
+
+ <refsect1>
+ <title>Description</title>
+
+ <para><link linkend="class-gtkcellrendererspinner"><classname>gtk.CellRendererSpinner</classname></link> renders a spinning
+ animation in a cell, very similar to <link linkend="class-gtkspinner"><classname>gtk.Spinner</classname></link>. It can
+ often be used as an alternative to a <link linkend="class-gtkcellrendererprogress"><classname>gtk.CellRendererProgress</classname></link>
+ for displaying indefinite activity, instead of actual progress.</para>
+
+ <para>To start the animation in a cell, set the "active" property to <literal>True</literal> and increment the "pulse" property
+ at regular intervals. The usual way to set the cell renderer properties for each cell is to bind them to columns in your tree
+ model using e.g. <link linkend="method-gtktreeviewcolumn--add-attribute"><methodname>gtk.TreeViewColumn.add_attribute</methodname></link>().</para>
+
+ </refsect1>
+
+ <refsect1>
+ <title>Constructor</title>
+
+ <refsect2 id="constructor-gtkcellrendererspinner">
+ <title>gtk.CellRendererSpinner</title>
+
+ <programlisting><constructorsynopsis language="python">
+ <methodname>gtk.CellRendererSpinner</methodname>
+ <methodparam></methodparam>
+ </constructorsynopsis></programlisting>
+
+ <variablelist>
+ <varlistentry>
+ <term><emphasis>Returns</emphasis> :</term>
+ <listitem><simpara>a new <link
+ linkend="class-gtkcellrendererspinner"><classname>gtk.CellRendererSpinner</classname></link></simpara></listitem>
+ </varlistentry>
+ </variablelist>
+
+ <note>
+ <para>This constructor is available in PyGTK 2.22 and above.</para>
+ </note>
+
+ <para>Creates a new <link
+ linkend="class-gtkcellrendererspinner"><classname>gtk.CellRendererSpinner</classname></link>.</para>
+
+ </refsect2>
+
+ </refsect1>
+
+</refentry>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]