import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.title("Tab Widget")
tabControl = ttk.Notebook(root)
tab1 = ttk.Frame(tabControl)
tab2 = ttk.Frame(tabControl)
tab3 = ttk.Frame(tabControl)
tabControl.add(tab1, text ='Tab 1')
tabControl.add(tab2, text ='Tab 2')
tabControl.add(tab3, text ='Tab 3')
tabControl.pack()
ttk.Label(tab1,text ="evening class").grid(column = 0,
row = 0,
padx = 30,
pady = 62)
ttk.Label(tab2,
text ="praveen is thopu").grid(column = 0,
row = 0,
padx = 30,
pady = 100)
ttk.Label(tab3,
text ="chiranjivi is thopu").grid(column = 0,
row = 0,
padx = 30,
pady = 100)
root.mainloop()
No comments:
Post a Comment