from tkinter import * from tkinter import ttk window = Tk() notebook = ttk.Notebook(window) #widget that manages a collection of windows/displays tab1 = Frame(notebook) #new frame for tab 1 tab2 = Frame(notebook) #new frame for tab 2 notebook.add(tab1,text="Tab 1") notebook.add(tab2,text="Tab 2") notebook.pack(expand=True,fill="both") #expand = expand to fill any space not otherwise used #fill = fill space on x and y axis Label(tab1,text="Hello, this is tab#1",width=50,height=25).pack() Label(tab2,text="Goodbye, this is tab#2",width=50,height=25).pack() window.mainloop()
Thank you a lot I understand you. Because you are not like other tutors, Just do this then this cant express or explain, You are basically just pulling the routine out and why and what is used for how and why, Basically you explaining by giving optional to others. Like # Widget manages collection of windows/displays #TheBest #Amazing
from tkinter import *
from tkinter import ttk
window = Tk()
notebook = ttk.Notebook(window) #widget that manages a collection of windows/displays
tab1 = Frame(notebook) #new frame for tab 1
tab2 = Frame(notebook) #new frame for tab 2
notebook.add(tab1,text="Tab 1")
notebook.add(tab2,text="Tab 2")
notebook.pack(expand=True,fill="both") #expand = expand to fill any space not otherwise used
#fill = fill space on x and y axis
Label(tab1,text="Hello, this is tab#1",width=50,height=25).pack()
Label(tab2,text="Goodbye, this is tab#2",width=50,height=25).pack()
window.mainloop()
Ur channel deserves more subscribers :) , I'm glad u tube recommended it to me.
Cool. Directly to the point.
thanks a lot! I feel excited while using this function
Brings back "Visual Basic 6" memories 😔. Bro, I'm enjoying, sorry, we're enjoying it 👏👏👏
Thanks for the support Mon Wil!
You are legend bro
It helped for my small project. Thanks!
AMAZING!!!
Hi Bro, you really help me!! You talk clear and straight to the point, I like it brother!!
Great,,
Good video
Nice sir❤
i like this this is very intersting]
im doing a clock project rn, and this video helped a lot! Thank you and keep going :)
Once again, a great tutorial. Thanks bro!
You are awesome teacher
Thank you a lot I understand you. Because you are not like other tutors, Just do this then this cant express or explain, You are basically just pulling the routine out and why and what is used for how and why, Basically you explaining by giving optional to others. Like # Widget manages collection of windows/displays #TheBest #Amazing
thanks sir this is really helpful
Thank you Bro!
could u explain how to add images in different tabs?
Thank you very much
I find it long time
Love you
Great !! Now, show some more interesting videos on the use of tkinter.
Thanks Bro
thnaks, man!
Good tutorial🙂
Bro why are you so good
Thank you
Great!
nice
hi sir can we plot graphs inside a tab...please if we can please give an.explan..
it really helped me but i want to know how to make from all the things that i learned a website by myself
It seems better than c#
Hi Bro, can you teach us how to add back button from Tkhinter please🥺
now I can make a unliimited tabs
can I add to each tab a script like for bots and add a play or pause button?
Trying to add this to my guess the number and it's opening another window... How would I add it to the same window so they can just click on the tabs?
What about commands in the widget
Beefy
Hello, its telling me to define frame