title: tkinter Treeview: get selected item values
body: <p>I'm just starting with a small tkinter tree program in python 3.4.</p>
  <p>I'm stuck with <strong>returning the first value of the row selected</strong>.
  I have multiple rows with 4 columns and I am calling a function  on left-click on a item:</p>
  <pre><code>tree.bind('&lt;Button-1&gt;', selectItem)
  </code></pre>
  <p>The function:</p>
  <pre><code>def selectItem(a):
      curItem = tree.focus()
      print(curItem, a)
  </code></pre>
  <p>This gives me something like this:</p>
  <pre><code>I003 &lt;tkinter.Event object at 0x0179D130&gt;
  </code></pre>
  <p>It looks like the selected item gets identified correctly.
  All I need now is how to get the first value in the row.</p>
  <p>tree-creation:</p>
  <pre><code>from tkinter import *
  from tkinter import ttk
  
  def selectItem():
      pass
  
  root = Tk()
  tree = ttk.Treeview(root, columns=(&quot;size&quot;, &quot;modified&quot;))
  tree[&quot;columns&quot;] = (&quot;date&quot;, &quot;time&quot;, &quot;loc&quot;)
  
  tree.column(&quot;date&quot;, width=65)
  tree.column(&quot;time&quot;, width=40)
  tree.column(&quot;loc&quot;, width=100)
  
  tree.heading(&quot;date&quot;, text=&quot;Date&quot;)
  tree.heading(&quot;time&quot;, text=&quot;Time&quot;)
  tree.heading(&quot;loc&quot;, text=&quot;Loc&quot;)
  tree.bind('&lt;Button-1&gt;', selectItem)
  
  tree.insert(&quot;&quot;,&quot;end&quot;,text = &quot;Name&quot;,values = (&quot;Date&quot;,&quot;Time&quot;,&quot;Loc&quot;))
  
  tree.grid()
  root.mainloop()
  </code></pre>