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.
Hi Bro, you really help me!! You talk clear and straight to the point, I like it brother!!
Brings back "Visual Basic 6" memories 😔. Bro, I'm enjoying, sorry, we're enjoying it 👏👏👏
Thanks for the support Mon Wil!
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
im doing a clock project rn, and this video helped a lot! Thank you and keep going :)
It helped for my small project. Thanks!
Great,,
thanks a lot! I feel excited while using this function
Once again, a great tutorial. Thanks bro!
Nice sir❤
Good video
You are awesome teacher
could u explain how to add images in different tabs?
You are legend bro
AMAZING!!!
Great !! Now, show some more interesting videos on the use of tkinter.
i like this this is very intersting]
Good tutorial🙂
thanks sir this is really helpful
Thank you very much
I find it long time
Love you
Bro why are you so good
❤
nice
hi sir can we plot graphs inside a tab...please if we can please give an.explan..
Thank you Bro!
thnaks, man!
Great!
thanks a lot
Thanks Bro
Thank you
can I add to each tab a script like for bots and add a play or pause button?
Hi Bro, can you teach us how to add back button from Tkhinter please🥺
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#
What about commands in the widget
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?
now I can make a unliimited tabs
Hello, its telling me to define frame
Beefy