Advertisement
here2share

# Tk_tabs.py

Jun 16th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. # Tk_tabs.py
  2.  
  3. from Tkinter import *
  4. from ttk import *
  5.  
  6. root = Tk()
  7. n = Notebook(root)
  8.  
  9. f1 = Frame(n)
  10. f2 = Frame(n)
  11. f3 = Frame(n)
  12. n.add(f1, text='One')
  13. n.add(f2, text='Two')
  14. n.add(f3, text='Three')
  15. n.pack()
  16.  
  17. root.title("Tabs")
  18.  
  19. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement