The TabView Widget - Tkinter CustomTkinter 12

  Рет қаралды 14,363

Tkinter․com

Tkinter․com

Күн бұрын

Пікірлер: 34
@TkinterPython
@TkinterPython 11 ай бұрын
▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book bit.ly/45iO4OP bit.ly/3K4qlZC ▶ See More At: ✅ Subscribe To My KZbin 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 6 ай бұрын
@TkinterPython How do I trigger an action when the specific tab is selected for example something like this: self.tab.bind("", self.doSomething)
@SergejsDmitrijevs-jo2du
@SergejsDmitrijevs-jo2du 9 ай бұрын
Brilliant! Thank you very much Jone. As always nice and clear, plus gaining experience with your help.
@TkinterPython
@TkinterPython 9 ай бұрын
Welcome
@BuLLGotcha
@BuLLGotcha 10 ай бұрын
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?
@BigTrafalgar
@BigTrafalgar 4 ай бұрын
Hi, nice content. Note that the anchor works inside the pack function. You were trying it inside the CTkTabview object.
@Terrasqule
@Terrasqule 3 ай бұрын
the anchor works for me on linux in the tabview object, but has to be capital letters.
@pixel-ez1qo
@pixel-ez1qo 3 ай бұрын
@@Terrasqule its work with a uppercase W
@Pad6
@Pad6 Ай бұрын
but what if you want the contents to be center, and say tab 2 is a treeview table which is much wider, so my question is can we change the size of the individual tabs? Or maybe put a form on them and then size it accordingly?
@maialinux-oficial
@maialinux-oficial 11 ай бұрын
This tabview style is the most interesting that I've ever seen in Python("tkinter"). Awesome!!!
@TkinterPython
@TkinterPython 11 ай бұрын
Glad you like it!
@XIENANDO
@XIENANDO 9 ай бұрын
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
@qlistTrueGamer
@qlistTrueGamer 11 ай бұрын
what if i wanna make it a vertical tabs?
@MysteryMindset636
@MysteryMindset636 11 ай бұрын
we need more vedios on this ....doing great job
@TkinterPython
@TkinterPython 11 ай бұрын
I've done hundreds of videos
@Pad6
@Pad6 Ай бұрын
@@TkinterPython maybe thousands at this point
@Annajiraochalla
@Annajiraochalla 9 ай бұрын
Nice Tutorial. Any idea how to change the font of the text in the tabs.
@ChinoSisouphanh
@ChinoSisouphanh 19 күн бұрын
great content
@antoz1619
@antoz1619 6 ай бұрын
How can I make bigger fonts for the segmented buttons text?
@creevid3564
@creevid3564 6 ай бұрын
nice video thankyou very much.
@sagarmakhija1994
@sagarmakhija1994 7 ай бұрын
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 7 ай бұрын
Sure; customtkinter.tomschimansky.com/documentation/widgets/tabview
@mreza_power_systems
@mreza_power_systems 5 ай бұрын
is it possible to set font of tab text????
@Pad6
@Pad6 Ай бұрын
would love to see how to add a tkinter treeview widget to tab 2, it gets a bit odd
@Pad6
@Pad6 Ай бұрын
Nevermind my _init_ was out of order, class MacroApp(ctk.CTk): def __init__(GDN): # On Initialization run the following code first super().__init__() GDN.title("Guardian") GDN.iconbitmap(r'D:\Python\Guardian\BF.ico') # File Path & in the same folder as program file GDN.geometry("560x740") GDN.eval('tk::PlaceWindow . center') GDN.attributes('-topmost', True) # Create tabview and tabs GDN.tabview = ctk.CTkTabview(GDN, width=510) GDN.tabview.grid(row=0, column=0, padx=10, pady=0, sticky="ew") GDN.tab1 = GDN.tabview.add("Main") GDN.tab2 = GDN.tabview.add("Database") GDN.tab3 = GDN.tabview.add("Xpath Practice") #then build the treeview # Create a style for the Treeview style = ttk.Style() style.theme_use("default") style.configure("Custom.Treeview", background="#0d131c", foreground="white", fieldbackground="#141d29", borderwidth=0, relief="flat") style.configure("Custom.Treeview.Heading", background="#0d131c", foreground="#8ca0ae", borderwidth=0, relief="flat") GDN.tree = ttk.Treeview(GDN.frame6, columns=("Date", "Time", "Strategy", "Balance", "Stoploss", "Base Bet", "Max Bet"), show='headings', style="Custom.Treeview", height=30) # Define headings GDN.tree.heading("Date", text="Date") GDN.tree.heading("Time", text="Time") GDN.tree.heading("Strategy", text="Strategy") GDN.tree.heading("Balance", text="Balance") GDN.tree.heading("Stoploss", text="Stoploss") GDN.tree.heading("Base Bet", text="Base Bet") GDN.tree.heading("Max Bet", text="Max Bet") # Set column widths GDN.tree.column("Date", width=60, anchor="center") GDN.tree.column("Time", width=50, anchor="center") GDN.tree.column("Strategy", width=50, anchor="center") GDN.tree.column("Balance", width=80, anchor="center") GDN.tree.column("Stoploss", width=80, anchor="center") GDN.tree.column("Base Bet", width=80, anchor="center") GDN.tree.column("Max Bet", width=80, anchor="center") # Pack the Treeview GDN.tree.pack(side="top", fill="both", expand=True, padx=5, pady=5) and at 2:04 when you said this outline looking box thing, it's not very big and..... That's what she said..........
@emiliofz
@emiliofz 11 ай бұрын
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.
@TkinterPython
@TkinterPython 11 ай бұрын
Good to know, thanks!
@MysteryMindset636
@MysteryMindset636 11 ай бұрын
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 11 ай бұрын
They're all good...watch them all :-p
@ermacheton
@ermacheton 8 ай бұрын
The way you change the anchor for the buttons is: tabview.segmented_button.grid(sticky="W")
@TkinterPython
@TkinterPython 8 ай бұрын
cool cool
@darrylmabalot8699
@darrylmabalot8699 6 ай бұрын
can I make the tab scrollable?
@TkinterPython
@TkinterPython 6 ай бұрын
sure, you can always add a scrolling frame to your tab
The TextBox Widget! - Tkinter CustomTkinter 13
16:08
Tkinter․com
Рет қаралды 10 М.
Working with multiple windows in tkinter
13:26
Atlas
Рет қаралды 34 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 88 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 23 МЛН
Progress Bars in CustomTkinter - Tkinter CustomTkinter 6
18:57
Tkinter․com
Рет қаралды 14 М.
Tkinter + Bootstrap Theme - ttkbootstrap - Complete App
49:35
The CS Classroom
Рет қаралды 28 М.
Combo Boxes in CustomTkinter - Tkinter CustomTkinter 5
20:59
Tkinter․com
Рет қаралды 15 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 79 М.
The grid layout method in tkinter
22:44
Atlas
Рет қаралды 33 М.
Don't use Tkinter!
39:53
Jason Codes Qt
Рет қаралды 12 М.
Entry Widgets in CustomTkinter - Tkinter CustomTkinter 3
11:41
Tkinter․com
Рет қаралды 23 М.
Use a Drag & Drop Editor to Make Tkinter Python GUI Applications!
11:16
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 88 МЛН