Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from Tkinter import *
- from ttk import *
- def button(master, txt, line, col):
- new = Button(master, text=txt)
- new.grid(row=line, column =col, columnspan=2)
- def frame(nb, txt):
- f = Frame(nb)
- nb.add(f, text = txt)
- root = Tk()
- nb = Notebook(root)
- f1 = frame(nb, '1')
- f2 = frame(nb, '2')
- button(f1, '1', 0, 0)
- nb.grid()
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement