title: TypeError: Misc.winfo_x() missing 1 required positional argument: 'self'
body: <p>How can I get this code in python to work? it keeps giving me a error: TypeError: Misc.winfo_x() missing 1 required positional argument: 'self'</p>
  <pre><code>def move_up(event):
      label.place(x=Label.winfo_x(), y=Label.winfo_y()-10)
  
  def move_down(event):
      label.place(x=Label.winfo_x(), y=Label.winfo_y()+10)
  
  def move_right(event):
      label.place(x=Label.winfo_x()+10, y=Label.winfo_y())
  
  def move_left(event):
      label.place(x=Label.winfo_x()-10, y=Label.winfo_y())
  
  # MOVING A WIDGET WITHIN A WINDOW
  
  window = Tk()
  window.geometry(&quot;500x500&quot;)
  
  window.bind(&quot;&lt;w&gt;&quot;, move_up)
  window.bind(&quot;&lt;s&gt;&quot;, move_down)
  window.bind(&quot;&lt;a&gt;&quot;, move_left)
  window.bind(&quot;&lt;d&gt;&quot;, move_right)
  window.bind(&quot;&lt;Up&gt;&quot;, move_up)
  window.bind(&quot;&lt;Down&gt;&quot;, move_down)
  window.bind(&quot;&lt;Left&gt;&quot;, move_left)
  window.bind(&quot;&lt;Right&gt;&quot;, move_right)
  
  myimage = PhotoImage(file='Race-Car.png')
  label = Label(window,image=myimage)
  label.place(x=0,y=0)
  
      
  
  window.mainloop()
  </code></pre>