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
▶ 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
@TkinterPython How do I trigger an action when the specific tab is selected for example something like this:
self.tab.bind("", self.doSomething)
Hi, nice content. Note that the anchor works inside the pack function. You were trying it inside the CTkTabview object.
the anchor works for me on linux in the tabview object, but has to be capital letters.
@@Terrasqule its work with a uppercase W
Brilliant! Thank you very much Jone. As always nice and clear, plus gaining experience with your help.
Welcome
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?
we need more vedios on this ....doing great job
I've done hundreds of videos
Nice Tutorial. Any idea how to change the font of the text in the tabs.
nice video thankyou very much.
what if i wanna make it a vertical tabs?
How can I make bigger fonts for the segmented buttons text?
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.
Good to know, thanks!
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?
Sure; customtkinter.tomschimansky.com/documentation/widgets/tabview
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
is it possible to set font of tab text????
This tabview style is the most interesting that I've ever seen in Python("tkinter"). Awesome!!!
Glad you like it!
can I make the tab scrollable?
sure, you can always add a scrolling frame to your tab
does i watch your 4 years old tkinter vedios or prefer these vedios or ttkbootstrap (i have watched 40 vedios of your tkinter playlist)
They're all good...watch them all :-p
The way you change the anchor for the buttons is:
tabview.segmented_button.grid(sticky="W")
cool cool