title: How to press more than one tkinter button simultaneously using python
body: <p>I have multiple buttons in tkinter window, but on a computer we only have one mouse pointer at one location at a time, how can I multi-press buttons simultaneously just like on a touch screen?</p>
  
  <p>Here is a sample code of what I am trying to do,</p>
  
  <pre><code>#!/usr/bin/python
  import Tkinter as Tk
  
  def button_pressed_cb(event):
      print("You pressed " + event.widget['text'])
  
  def button_release_cb(event):
      print("You released " + event.widget['text'])
  
  root = Tk.Tk()
  button1 = Tk.Button(root, text="button1")
  button1.pack()
  button2 = Tk.Button(root, text="button2")
  button2.pack()
  
  button1.bind("&lt;ButtonPress&gt;", button_pressed_cb)
  button1.bind("&lt;ButtonRelease&gt;", button_release_cb)
  button2.bind("&lt;ButtonPress&gt;", button_pressed_cb)
  button2.bind("&lt;ButtonRelease&gt;", button_release_cb)
  
  root.mainloop()
  </code></pre>
  
  <p>After executing this, I get a sample output of something like this,</p>
  
  <pre><code>You pressed button1
  You released button1
  You pressed button2
  You released button2
  </code></pre>
  
  <p>What I want to achieve is to be able to generate events which occur in this sequence,</p>
  
  <pre><code>You pressed button1
  You pressed button2
  You released button2
  You released button1
  </code></pre>
  
  <p>Does anybody know what's the best way to achieve this? Thank you so much.</p>