擅长:python、mysql、java
<p>当你对一行接一行的时候</p>
<pre><code>def onClick(actor, event):
actor.animatev(Clutter.AnimationMode.LINEAR, 1000, ["x"], [280])
actor.animatev(Clutter.AnimationMode.LINEAR, 1000, ["x"], [20])
</code></pre>
<p>克拉特不用等另一个完成就可以完成这两个任务。这意味着在第二个命令接管之前,第一个命令几乎没有时间移动代理。在</p>
<p>以下是使用“已完成”信号的示例:</p>
^{pr2}$
<p><a href="https://developer.gnome.org/clutter/stable/clutteranimation.html" rel="nofollow">Here is the documentation on clutter animations</a><br/>
<a href="https://developer.gnome.org/clutter/stable/clutter-Implicit-Animations.html#ClutterAnimation-completed" rel="nofollow">Here is the documentation on the "completed" signal</a><br/>
<a href="http://www.eurion.net/python-snippets/snippet/Clutter%20Animation.html" rel="nofollow">Here is some working example code</a></p>