title: check what button in a list has been pressed with bind tkinter
body: <p>I have a list of buttons and when I run a function I need to check what button in that list was pressed.</p>
  
  <pre><code>import tkinter
  
  root = tkinter.Tk()
  
  def Function(event):
      print('The pressed button is:')
  
  listOfButtons = []
  Button = tkinter.Button(root, text="Button 1")
  listOfButtons.append(Button)
  Button.pack()
  Button.bind("&lt;Button-1&gt;", Function)
  
  Button = tkinter.Button(root, text="Button 2")
  Button.pack()
  listOfButtons.append(Button)
  Button.bind("&lt;Button-1&gt;", Function)
  
  root.mainloop()
  </code></pre>