title: How do I code what my mouse click? I managed to do e.get() by using user to type but now, I want to do a mouse version
body: <p>I am doing a GUI Tkinter project. Currently. I am able to display the excel file on my GUI via treeview function. I want to code in a way that my mouse click for example, when row 1 is clicked, it will read row1, column 2 box and look for the file in the documents based on the word in row1 x column 2 box and plot some graphs which is completed/ not important, or when row x is left-clicked, lock in row x X column 2 to find the name and search for it in my documents file.
  I want to code the e.get() but mouse click version.</p>
  <pre><code>df = pd.read_csv(&quot;C:/Users/njj95/Documents/&quot;+e1.get()+&quot;.csv&quot;)
  </code></pre>
  <p>What I have tried so far is left click and right click.</p>
  <pre><code>def leftClick(event):
      print(&quot;left&quot;)    
  def rightClick(event):
      print(&quot;right&quot;)
  my_tree.bind(&quot;&lt;Button-1&gt;&quot;,leftClick)
  my_tree.bind(&quot;&lt;Button-3&gt;&quot;,rightClick)
  </code></pre>
  <p>What I have done previously was to user user to enter name and continues from there. Now I want to upgrade my GUI by just clicking  the list of usernames instead of user typing in the username.
  Previously, my code was</p>
  <pre><code>df = pd.read_csv(&quot;C:/Users/njj95/Documents/&quot;+e1.get()+&quot;.csv&quot;)
  </code></pre>
  <p>The e1.get() is entered by user.</p>
  <p><a href="https://i.stack.imgur.com/IeIls.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IeIls.png" alt="This is the user type in version GUI" /></a></p>
  <p><a href="https://i.stack.imgur.com/4vTS4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4vTS4.png" alt="This is an exact copy and paste from an excel file" /></a></p>