title: Python Tkinter Treeview search all entries
body: <p>I use a treeview to show all items a folder contains.</p>
  
  <p>I create all entries with this function:</p>
  
  <pre><code>def SUBS(path, parent):    
      for p in os.listdir(path):
          abspath = os.path.join(path, p)
          parent_element = tree.insert(parent, 'end', text=p, open=True)
          if os.path.isdir(abspath):
              SUBS(abspath, parent_element)
  </code></pre>
  
  <p>and now i want to search through it with this function:</p>
  
  <pre><code>def search(event, item=''): 
      children = tree.get_children(item)
      for child in children:
          text = tree.item(child, 'text')
          if text.startswith(entry.get()):
              tree.selection_set(child)
  </code></pre>
  
  <p>The Problem is that the search function only search through the first "nodes". Not all. So how do i search throug the children of a child? And how are they called?</p>