title: TypeError: unsupported operand type(s) for -: 'int' and 'main'
body: <p>I am trying to use the value of a click event in calculations.  Whenever I try to convert it to an int, it throws this error:</p>
  
  <pre><code>TypeError: unsupported operand type(s) for -: 'int' and 'main'
  </code></pre>
  
  <p>Here is a piece of the code that gets the error</p>
  
  <pre><code>def goto(self, event):
      self.ex = int(event.x)
      self.ey = int(event.y)
      self.find_distance(self.ex, self.ey)
  
  def find_distance(xclick, yclick, self):
      #distance formula = sqrt((x2 - x1)^2 + (y2 - y1)^2)
      self.xadd = (xPos - xclick)^2
      self.yadd = (yPos - yclick)^2
      self.step2 = self.xadd + self.yadd
      print sqrt(step2)
  </code></pre>