The TabView Widget - Tkinter CustomTkinter 12

Поделиться
HTML-код
  • Опубликовано: 22 июл 2024
  • In this video I'll talk all about the TabView Widget for CustomTkinter and Python.Tabs are a great way to break up the layout of a GUI.In this video I'll show you how to create them in CustomTkinter and also how to customize the look and feel of them.
    #tkinter #codemy #JohnElder
    Timecodes
    0:00​​ - Introduction
    1:11 - Create TabView
    2:13 - Create Tabs
    3:22 - Add Things To Tab Frames
    4:30 - Tab Width and Height
    5:16 - Tab Corner Radius
    6:15 - Tab FG Color
    6:58 - Segmented Button FG Color
    7:36 - Segmented Button Selected Color
    8:03 - Segmented Button Selected Hover Color
    8:36 - Segmented Button Unselected Hover Color
    9:10 - Segmented Button Unselected Color
    9:38 - Text Color
    10:03 - Change The State
    10:25 - Tab Command
    11:33 - Tab Position
    13:00 - Conclusion

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

  • @TkinterPython
    @TkinterPython  8 месяцев назад +3

    ▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book
    bit.ly/45iO4OP bit.ly/3K4qlZC
    ▶ See More At: ✅ Subscribe To My RUclips Channel:
    Tkinter.com bit.ly/3Pk1By4
    ▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
    30% off with coupon code: youtube bit.ly/2GFmOBz
    ▶ Get The Code For This Video
    bit.ly/3dCzz2K

    • @matejjukic5776
      @matejjukic5776 3 месяца назад

      @TkinterPython How do I trigger an action when the specific tab is selected for example something like this:
      self.tab.bind("", self.doSomething)

  • @BigTrafalgar
    @BigTrafalgar Месяц назад +2

    Hi, nice content. Note that the anchor works inside the pack function. You were trying it inside the CTkTabview object.

    • @Terrasqule
      @Terrasqule 21 день назад

      the anchor works for me on linux in the tabview object, but has to be capital letters.

    • @pixel-ez1qo
      @pixel-ez1qo 18 дней назад

      @@Terrasqule its work with a uppercase W

  • @SergejsDmitrijevs-jo2du
    @SergejsDmitrijevs-jo2du 6 месяцев назад +1

    Brilliant! Thank you very much Jone. As always nice and clear, plus gaining experience with your help.

  • @BuLLGotcha
    @BuLLGotcha 7 месяцев назад +1

    Thank you for making these :)
    Do you know if its possible to change how these tabs are accessed? The "tab1" and "tab2" small buttons there dont look good with what I'm trying to do. Can I have each tab be pulled up using buttons instead?

  • @MysteryMindset636
    @MysteryMindset636 8 месяцев назад

    we need more vedios on this ....doing great job

  • @Annajiraochalla
    @Annajiraochalla 6 месяцев назад

    Nice Tutorial. Any idea how to change the font of the text in the tabs.

  • @creevid3564
    @creevid3564 3 месяца назад

    nice video thankyou very much.

  • @qlistTrueGamer
    @qlistTrueGamer 8 месяцев назад +1

    what if i wanna make it a vertical tabs?

  • @antoz1619
    @antoz1619 3 месяца назад

    How can I make bigger fonts for the segmented buttons text?

  • @emiliofz
    @emiliofz 8 месяцев назад

    Hello Jhon, anchor property is avaliable in 5.2.1 version. I've had to upgrde custom tkinter from 5.2.0 to get it.

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

    Hey man, it was a very good tutorial, I just want to know if its possible to get the current tab focus index or can we recognize which tab button click, Tab-a, Tab-b, Tab-c?

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

      Sure; customtkinter.tomschimansky.com/documentation/widgets/tabview

  • @XIENANDO
    @XIENANDO 6 месяцев назад

    Hello John, thanks for your effort in this video. I really have one frustrating experience: the fact that everyone teaching about customtkinter tabview kept repeating the same example that is already in the documentation and never go beyond that. How about creating a tabview, adding a label and then on the label you create form fields and action buttons? Beleive me, a lot of people like me would learn so much from that. Thank you

  • @mreza_power_systems
    @mreza_power_systems 2 месяца назад

    is it possible to set font of tab text????

  • @maialinux-oficial
    @maialinux-oficial 8 месяцев назад

    This tabview style is the most interesting that I've ever seen in Python("tkinter"). Awesome!!!

  • @darrylmabalot8699
    @darrylmabalot8699 3 месяца назад

    can I make the tab scrollable?

    • @TkinterPython
      @TkinterPython  3 месяца назад

      sure, you can always add a scrolling frame to your tab

  • @MysteryMindset636
    @MysteryMindset636 8 месяцев назад

    does i watch your 4 years old tkinter vedios or prefer these vedios or ttkbootstrap (i have watched 40 vedios of your tkinter playlist)

    • @TkinterPython
      @TkinterPython  8 месяцев назад

      They're all good...watch them all :-p

  • @ermacheton
    @ermacheton 5 месяцев назад +1

    The way you change the anchor for the buttons is:
    tabview.segmented_button.grid(sticky="W")