title: How to bind mouse clicks to functions in all windows in Tkinter
body: <p>I am trying to bind the middle mouse click to a function:</p>
  <pre><code>root = Tk() 
  
  def leftclick(self):
      print(&quot;Yep!&quot;)
  
  root.bind(&quot;&lt;Button-2&gt;&quot;, leftclick)
  root.mainloop()
  </code></pre>
  <p>This works, however only on the Tkinter window, any ideas for other windows?</p>