title: How can I prevent entrybox to get focus when switching to a new ttk notebook tab python?
body: <p>[CODE]</p>
  
  <pre><code>from Tkinter import *
  from ttk import *
  
  root = Tk()
  noteBook = Notebook(root)
  root.focus()
  tab1 = Frame(noteBook)
  tab2 = Frame(noteBook)
  Label(tab2, text='Test', width=15).grid(row=3,column=0, sticky=W)
  Entry(tab2, width=40).grid(row=3,column=1)
  noteBook.add(tab1, text = "tab 1", compound=TOP)
  noteBook.add(tab2, text = "tab 2")
  noteBook.pack()
  root.mainloop()
  </code></pre>
  
  <p>[CURRENT OUTPUT] the entryBox is focused when I click on tab2.</p>
  
  <p>[DESIRED OUTPUT] the entryBox should not be focused.</p>
  
  <p>[NOTE] if I double click on tab2, then it gets the focus. even if comment out the line 'root.focus()', the entryBox still has focus.</p>