pygoocanvas r230 - in trunk: . demo/misc docs/reference



Author: gianmt
Date: Sun Nov 16 23:12:03 2008
New Revision: 230
URL: http://svn.gnome.org/viewvc/pygoocanvas?rev=230&view=rev

Log:
add animation-finished in the docs

Modified:
   trunk/ChangeLog
   trunk/demo/misc/simple-demo.py
   trunk/docs/reference/pygoocanvas-item.xml

Modified: trunk/demo/misc/simple-demo.py
==============================================================================
--- trunk/demo/misc/simple-demo.py	(original)
+++ trunk/demo/misc/simple-demo.py	Sun Nov 16 23:12:03 2008
@@ -1,5 +1,4 @@
 import sys
-import gobject
 import gtk
 import goocanvas
 
@@ -38,6 +37,15 @@
                           font="Sans 24")
     root.add_child(item, 1)
     item.rotate(45, 300, 300)
+    
+    def on_click(widget):
+        print "clicked on ", widget
+    
+    button = gtk.Button("Sample button")
+    wid = goocanvas.Widget(parent=root,
+                           widget = button,
+                           x=300, y=300)
+    button.connect("clicked", on_click)
 
     gtk.main()
 

Modified: trunk/docs/reference/pygoocanvas-item.xml
==============================================================================
--- trunk/docs/reference/pygoocanvas-item.xml	(original)
+++ trunk/docs/reference/pygoocanvas-item.xml	Sun Nov 16 23:12:03 2008
@@ -356,6 +356,17 @@
         <title>goocanvas.Item Signal Prototypes</title>
         <variablelist>
             <varlistentry>
+                <term><link linkend="signal-goocanvasitem--animation-finished">"animation-finished"</link></term>
+                <listitem>
+                    <methodsynopsis language="python"><methodname>callback</methodname>
+                        <methodparam><parameter>item</parameter></methodparam>
+                        <methodparam><parameter>stopped</parameter></methodparam>
+                        <methodparam><parameter>user_param</parameter></methodparam>
+                        <methodparam><parameter>...</parameter></methodparam>
+                    </methodsynopsis>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
                 <term><link linkend="signal-goocanvasitem--button-press-event">"button-press-event"</link></term>
                 <listitem>
                     <methodsynopsis language="python"><methodname>callback</methodname>
@@ -1621,6 +1632,48 @@
     <refsect1>
         <title>Signals</title>
         
+        <refsect2 id="signal-goocanvasitem--animation-finished">
+            <title>The "animation-finished" goocanvas.Item Signal</title>
+            
+            <programlisting><methodsynopsis language="python"><methodname>callback</methodname>
+                    <methodparam><parameter>item</parameter></methodparam>
+                    <methodparam><parameter>stopped</parameter></methodparam>
+                    <methodparam><parameter>user_param</parameter></methodparam>
+                    <methodparam><parameter>...</parameter></methodparam>
+                </methodsynopsis></programlisting>
+            
+            <variablelist>
+                <varlistentry>
+                    <term><parameter>item</parameter>&nbsp;:</term>
+                    <listitem><simpara>
+                            The <link linkend="class-canvas-item"><classname>goocanvas.Item</classname></link> 
+                            that received the signal.
+                        </simpara></listitem>
+                </varlistentry>
+                <varlistentry>
+                    <term><parameter>stopped</parameter>&nbsp;:</term>
+                    <listitem><simpara>
+                            if the animation was explicitly stopped. 
+                        </simpara></listitem>
+                </varlistentry>
+                <varlistentry>
+                    <term><parameter>user_param</parameter>&nbsp;:</term>
+                    <listitem><simpara>the first user parameter (if any) specified
+                            with the <link linkend="method-gobject--connect"><methodname>connect</methodname>()</link>
+                            method
+                        </simpara></listitem>
+                </varlistentry>
+                <varlistentry>
+                    <term><parameter>...</parameter>&nbsp;:</term>
+                    <listitem><simpara>additional user parameters (if any)</simpara></listitem>
+                </varlistentry>
+            </variablelist>
+            
+            <para>
+                The "animation-finished" signal is emitted when the item animation has finished.
+            </para>
+        </refsect2>
+        
         <refsect2 id="signal-goocanvasitem--button-press-event">
             <title>The "button-press-events" goocanvas.Item Signal</title>
             



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]