title: Name '...' is not defined
body: <p>I get a message saying</p>
  
  <pre><code>Traceback (most recent call last):
  File "&lt;input&gt;", line 1, in &lt;module&gt;
  NameError: name 'update' is not defined
  </code></pre>
  
  <p>The original code is</p>
  
  <pre><code>    from PySide import QtCore
  
      i = 0
      def update();
      global i
  App.getDocument("Unnamed2").Pad001.Placement=App.Placement(App.Vector(0,127.5,0), App.Rotation(App.Vector(0,0,1),-i), App.Vector(0,0,0))
  App.getDocument("Unnamed2").Pad.Placement=App.Placement(App.Vector(0,0,0), App.Rotation(App.Vector(0,0,1),i*(74.0/28.0)), App.Vector(0,0,0))
  i += 0.01
  
      timer = QtCore.QTimer()
      timer.timeout.connect( update )
      timer.start( 1 )
  </code></pre>
  
  <p>It's code for a gear animation, but it doesn't work. I am not that good in coding so I'm not really sure what's the problem. It would be nice if anyone can help me. Thank you. :)</p>