Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tk_tabs.py
- from Tkinter import *
- from ttk import *
- root = Tk()
- n = Notebook(root)
- f1 = Frame(n)
- f2 = Frame(n)
- f3 = Frame(n)
- n.add(f1, text='One')
- n.add(f2, text='Two')
- n.add(f3, text='Three')
- n.pack()
- root.title("Tabs")
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement