title: Why is my Button's command executed immediately when I create the Button, and not when I click it?
body: <p>My code is:</p>
  <pre><code>from Tkinter import *
  
  admin = Tk()
  def button(an):
      print(an)
      print('het')
  
  b = Button(admin, text='as', command=button('hey'))
  b.pack()
  mainloop()
  </code></pre>
  <p>The button doesn't work, it prints 'hey' and 'het' once without my command, and then, when I press the button nothing happens.</p>
  <hr />
  <p><sub>See <a href="https://stackoverflow.com/questions/277922/python-argument-binders">Python Argument Binders</a> for standard techniques (not Tkinter-specific) for solving the problem.</sub></p>