title: How do I get id of a widget that invoke an event (Tkinter)
body: <p>I have these set of rectangles drawn on a canvas. They are all bind to Button-1 event. What I like to do is set a variable with an id of a widget that invoke the event. Here's a pseudo code of what I like to do</p>
  
  <pre><code>def clicked(e): #event handler. Binds to rectangle objects
      selected_button = e.widgets.get_id()
  </code></pre>
  
  <p>P.S : Although I bind the event handler to those rectangles objects only, when I place code e.widget.destroy() inside that handler, the canvas is destroyed as well.</p>