title: How to change the tab of ttk.Notebook
body: <p>I have a <code>ttk.Notebook</code> and with a button I would like to switch to another tab.<br>
  How can I achieve this?</p>
  
  <p>It looks that changing the tab state (<code>normal</code>, <code>disabled</code>, and <code>hidden</code>) will not solve my problem since I don't want to disable any tabs.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import time
  import ttk as ttk
  import Tkinter as tk
  
  root=tk.Tk()
  
  root.config(width=300,height=220)
  
  notebook=ttk.Notebook(root)
  notebook.place(x=0,y=0)
  
  tabList=[]
  i=0
  while i&lt;6:    
       tabList.append(tk.Frame(root))
       tabList[i].config(width=300,height=150,background='white')
       i+=1
  
  i=0
  while i&lt;6: 
      notebook.add(tabList[i],text='tab'+str(i))
      i+=1
  
  def fLoopTabs():
      i=0
      while i&lt;6:
           notebook.select(i)
           time.sleep(2)
           #Here goes the Screenshot function
           i+=1
  
   button=ttk.Button(root,text='Loop',command=fLoopTabs)
   button.place(x=20,y=180)
  
   root.mainloop()
  </code></pre>