title: Python: Unbound method
body: <p>When I try to bind a method, I get an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "pygametest3.py", line 12, in &lt;module&gt;
      render = winback.rend()
  TypeError: unbound method rend() must be called with winback instance as first argument (got nothing instead)
  </code></pre>
  
  <p>This is the code, up to the offending point:</p>
  
  <pre><code>import sys, pygame
  
  pygame.init()
  
  class winback:
      """Render the window"""
      def rend(self):
          rendsurf.fill(black)
          rendsurf.blit (landsurf, (landx,landy,640,480))
          screen.blit (rendsurf, (0,0,640,480))
          pygame.display.flip()
  render = winback.rend()
  </code></pre>
  
  <p>Also, I'm sorry if this is blatantly obvious and not worth posting/reposting. This is my first real plunge into python, I've worked on this all day, I'm feeling kinda stupid, and it's 12:30 in the morning.</p>