Python tkinter how to add window tabs 📑

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • Python GUI tabs notebook tkinter GUI tutorial for beginners
    #Python #GUI #tabs #notebook #tkinter #GUI #tutorial #beginners

Комментарии • 40

  • @BroCodez
    @BroCodez  4 года назад +23

    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()

  • @CSBAjay
    @CSBAjay 3 года назад +4

    Ur channel deserves more subscribers :) , I'm glad u tube recommended it to me.

  • @elevendarter112
    @elevendarter112 Год назад +1

    Cool. Directly to the point.

  • @codeitaday
    @codeitaday 2 года назад +1

    thanks a lot! I feel excited while using this function

  • @monwil3296
    @monwil3296 4 года назад +6

    Brings back "Visual Basic 6" memories 😔. Bro, I'm enjoying, sorry, we're enjoying it 👏👏👏

    • @BroCodez
      @BroCodez  4 года назад +1

      Thanks for the support Mon Wil!

  • @lost_lyrics101
    @lost_lyrics101 11 месяцев назад +1

    You are legend bro

  • @ThearaRem
    @ThearaRem 3 года назад +2

    It helped for my small project. Thanks!

  • @beingzero7541
    @beingzero7541 2 года назад +2

    AMAZING!!!

  • @joeri29
    @joeri29 2 года назад +1

    Hi Bro, you really help me!! You talk clear and straight to the point, I like it brother!!

  • @truquichan
    @truquichan 11 месяцев назад +1

    Great,,

  • @user-jn1ky7ev2r
    @user-jn1ky7ev2r 5 месяцев назад

    Good video

  • @percussion1999
    @percussion1999 25 дней назад

    Nice sir❤

  • @RARYAMEHD
    @RARYAMEHD 9 месяцев назад

    i like this this is very intersting]

  • @doriandoesstuff
    @doriandoesstuff 2 года назад +1

    im doing a clock project rn, and this video helped a lot! Thank you and keep going :)

  • @tatyana9974
    @tatyana9974 2 года назад +1

    Once again, a great tutorial. Thanks bro!

  • @channelparadize5972
    @channelparadize5972 3 года назад +1

    You are awesome teacher

  • @user-me7tt8uz9b
    @user-me7tt8uz9b 9 месяцев назад

    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

  • @umairrasool9113
    @umairrasool9113 3 года назад +1

    thanks sir this is really helpful

  • @shahzodsayfiddinov9510
    @shahzodsayfiddinov9510 3 года назад +1

    Thank you Bro!

  • @lehereinmusicalgroup1206
    @lehereinmusicalgroup1206 3 года назад +4

    could u explain how to add images in different tabs?

  • @TheF22raptorang
    @TheF22raptorang 2 года назад

    Thank you very much
    I find it long time
    Love you

  • @PhG1961
    @PhG1961 2 года назад

    Great !! Now, show some more interesting videos on the use of tkinter.

  • @alexoriginals
    @alexoriginals 4 месяца назад

    Thanks Bro

  • @AlekseyPokotilov
    @AlekseyPokotilov 2 года назад

    thnaks, man!

  • @bartekgrechuta7691
    @bartekgrechuta7691 Год назад

    Good tutorial🙂

  • @sneaky_3099
    @sneaky_3099 2 года назад

    Bro why are you so good

  • @fajrulfalah93
    @fajrulfalah93 Год назад

    Thank you

  • @creative460
    @creative460 3 года назад

    Great!

  • @uuhju7004
    @uuhju7004 3 года назад

    nice

  • @umairrasool9113
    @umairrasool9113 3 года назад +1

    hi sir can we plot graphs inside a tab...please if we can please give an.explan..

  • @user-ef6rx8ce8j
    @user-ef6rx8ce8j 2 года назад

    it really helped me but i want to know how to make from all the things that i learned a website by myself

  • @vfgrfbgrb
    @vfgrfbgrb 2 года назад

    It seems better than c#

  • @lichtblade1375
    @lichtblade1375 Год назад

    Hi Bro, can you teach us how to add back button from Tkhinter please🥺

  • @ruchigoel3242
    @ruchigoel3242 Год назад

    now I can make a unliimited tabs

  • @cahyakomara1468
    @cahyakomara1468 5 месяцев назад

    can I add to each tab a script like for bots and add a play or pause button?

  • @cursedpoptart
    @cursedpoptart 3 года назад

    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?

  • @Giodidthat
    @Giodidthat Год назад

    What about commands in the widget

  • @jhassee
    @jhassee Год назад

    Beefy

  • @hawraaalmayahi6137
    @hawraaalmayahi6137 Год назад

    Hello, its telling me to define frame