▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3fLFQ8p
@MrGEEK-ii8bp4 жыл бұрын
First comment just to appreciate the consistency and efforts you put in this and your way of teaching which makes doing python a lot more interesting!
@Codemycom4 жыл бұрын
Thanks! I appreciate that!
@Hex-Scholar Жыл бұрын
We can also do this for hiding the ghost column: tree = ttk.Treeview(root, columns=columns, show='headings') The show='heading' hides the first column (column #0) of the Treeview. The show option accepts one of the following values: 'tree' - shows the column #0. 'heading' - shows the header row. 'tree headings' - shows both column #0 and the header row. This is the default value. '' - doesn’t show the column #0 or the header row. Right ?
@judeleon84854 жыл бұрын
Thanks so much John, I appreciate you so much for taking on this topic. You are awesomely great
@Codemycom4 жыл бұрын
You are so welcome! glad you enjoyed it!
@cuitaro4 жыл бұрын
This video was quite early! A.K.A Your videos are AWESOME! They are like 20% cooler than other tutorials!
@Codemycom4 жыл бұрын
ha thanks!
@codegeassprogramming2 жыл бұрын
Thanks Sir No one teaches tkinter in depth like you you have helped me earn money thanks sir
@daveleonard32803 жыл бұрын
This video and the next few helped a TON to learn tkinter Treeview! Thanks a lot!
@Codemycom3 жыл бұрын
Awesome, glad it was useful to you!
@santiagocollados89863 жыл бұрын
Thanks so much! I was looking for this for many days on the web!!!
@Codemycom3 жыл бұрын
Glad I could help!
@اندرويدتك-ذ6ض4 жыл бұрын
I hope you to make video on how to edit the shape of the treeview colors , padding and other stuffs . You are the best one who explains tkinter widgets.
@Codemycom4 жыл бұрын
Will probably be doing that, yes :-)
@linuxguardian85964 жыл бұрын
Legend says, he still is doing tkinter tutorials to this day...
@sudin99and814 жыл бұрын
obviously???
@linuxguardian85964 жыл бұрын
@@sudin99and81 wow dude you are really smart for not understanding a joke
@Codemycom4 жыл бұрын
hahaha
@sudin99and814 жыл бұрын
@@linuxguardian8596 i was born smart
@programmerlol20413 жыл бұрын
Ok I have to say this you are explaining so good and your voice is clear good . This channel should deserve 1million subscribers👍👍👍😎😍😊😀
@PeeOrbital2 жыл бұрын
Gotta love John Elder. What a master at teaching.
@Codemycom2 жыл бұрын
Thanks!
@u2watchermirador1014 жыл бұрын
Thanks John! This is what I was waiting for from you. 👍🏾👍🏾👍🏾👍🏾👍🏾❤️❤️❤️
@Codemycom4 жыл бұрын
Awesome, glad I could help!
@aloksharma60954 жыл бұрын
Thank you sir for your whole playlist and efforts . Blessing from India
@Codemycom4 жыл бұрын
Glad you enjoy them!
@mathiasvillalbadiaz64333 жыл бұрын
Uno de los pocos cursos en ingles que podes entender sin hablar Ingles, Que Grande Codemy, muchas Gracias
@rogeriovaz44203 жыл бұрын
Simply, the best. Thanks.
@Rulzan11 ай бұрын
Although your trainings are free, i bought them on udemy. Thank you so much, i really learned a lot!
@Codemycom11 ай бұрын
thanks, appreciate it!
@eesakamaldien19173 жыл бұрын
what a great video! thank you so much you are my new guru! definitely subscribed
@Codemycom3 жыл бұрын
Awesome, thanks!
@grantpeterson25243 жыл бұрын
Thank you so much for your helpful videos! Just curious, is there a reason you are using an iterator variable for your for loops instead of enumerate()? Just curious if I have been doing it wrong or if there are any serious drawbacks to using enumerate. Thanks! EDIT: Specifically at 18:05
@Codemycom3 жыл бұрын
No particular reason.
@adrielbradley66774 жыл бұрын
I was looking forward to this one. Great one!
@Codemycom4 жыл бұрын
Glad you liked it!
@connguyen86943 жыл бұрын
Thanks for your helpful videos. It's ideal if you have a tutorial video showing how to add multiple rows (such as data in this treeview tutorial video) into a database (such as MySQL). All users have to do is to press a button to save those rows of data in the treeview into the db. Many thanks!
@gabrielpena58293 жыл бұрын
These videos are amazing. The guy who gave this video a dislike is crazy
@Codemycom3 жыл бұрын
ha thanks!
@shauryastudy86672 жыл бұрын
Thankyou John sir !! you really help me to solve a big problem of my project
@Codemycom2 жыл бұрын
Happy to hear it!
@azraelaxel3124 Жыл бұрын
Very good tutorial!, be aware, in the code i made, if i hide the first column (the #0), will hide the "+" icon for drop down/up the list
@Codemycom Жыл бұрын
yep
@realmercure14473 жыл бұрын
Good demonstration of how to use a treeview to make a table !?
@Codemycom3 жыл бұрын
Glad you enjoyed it!
@lecomtegaetan81203 жыл бұрын
thank you so much , u can't imagine how it's helping me rn =)
@mr.RAND55842 жыл бұрын
Beautiful. Tables i love tables, csharp, java, vb.net, html, javafx. Thank you sir.
@Codemycom2 жыл бұрын
welcome
@RyanDanielG3 жыл бұрын
Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks
@bennysalim3544 жыл бұрын
Yes.. this is what i need instead of using listbox. Thank you Sir
@Codemycom4 жыл бұрын
You are welcome
@ab123-j7v2 жыл бұрын
Great lesson, thank you for your time and efforts.
@Codemycom2 жыл бұрын
Welcome!
@bryanttejeda8756 ай бұрын
I found the video I needed,that stupid ghost column seemed inmortal, thank you
@Codemycom5 ай бұрын
Glad you got it sorted out!
@zenitnadir20929 ай бұрын
Hi John, thank you for the tutorial. I have a little problem, I hope you could help me. I have two Treeviews next to each other, and I want them to be of the same width. The problem is that I have many headings, so the first one occupies almost all the space, and the second one is superthin (as much as the space that's left allows). Can you give me a hint on how to fix the width of treeviews? Thank you a lot, your videos are very helpful :D
@ARUNKUMAR-op6cn4 жыл бұрын
I was looking for this thank you sir
@Codemycom4 жыл бұрын
Enjoy!
@sinakarimi82734 жыл бұрын
Hello john, can we add a button as a value of a cloumn in treeview?
@joy2000cyber Жыл бұрын
14:20 if I need the little check box not on column #0, say on column #2, what to do? Thanks!❤
@nestorarrastiacovella9803 Жыл бұрын
Thanks for this video #116. My question: Once we have the table, it is posible ti completely hide it and show a new one with same headers buth diferent rows data?
@Codemycom Жыл бұрын
Sure, I probably have videos back at the beginning of the playlist on hiding widgets. Then you would just build a second one with whatever headers you wanted.
@alkasinha81312 жыл бұрын
its a great effort sir, I have a question that in most of software grid is used to separate between cells in display here how can we deploy grids in Treeview, please comment
@番長ほむら3 жыл бұрын
Is there a way to not make the columns disappear out of frame when you resize the column using the resize bar on their right?
@МухтарАуэзов-ц8ш11 ай бұрын
Hi everyone! I couldn't find information on the Internet. Therefore, I just wanna ask in here. Is it possible to display numbers in treeview tkinter with separator , isn't?
@jerrysavarino21132 жыл бұрын
Hi John. As always, great tutorial and very well explained! I am building an app where I can generate a different Treeview based on different options selected from one or more comboxboxes. I would select 1 or more comboboxes and then hit a button called 'Generate Report' and it will display the data in the treeview. What I am struggling to do is each time I hit the 'Generate Report' button, it always creates another Treeview widget below the previous Treeview widget. I want the function to be able to 'remove' the treeview widget and then display the different Treeview widget once the function has completed. I have tried placing pack_forget() in certain places in the function but it doesn't seem to be working. Any tips on what things I need to look at or look into?
@Codemycom2 жыл бұрын
Many ways to do it, pack_forget, destroy, .config, etc. You could put each treeview in a frame then hide/show the frames...you could use the same treeview but just delete all the data in it each time...like I said, there's just a ton of ways to do it. If pack_forget didn't work for you, it's probably because you didn't do it correctly :-p
@alialavizadeh27753 жыл бұрын
I've been searching for this a lot but I didn't what is the name of this widget and how it works thank you Mr.Elder
@ferenckovacs16482 жыл бұрын
Is it possible to fill columns with data and not by row i mean column by column like i mean is it possible to fill this with a dataframe?
@jenilchudgar2 жыл бұрын
Congrats on 100K Subs
@Codemycom2 жыл бұрын
Thanks!!
@Knud4513 жыл бұрын
Thanks a lot for all the videos! They're super helpful! A very general question, I need to present tabular data from a SQL query. What is the best way to do that? Frame, Treeview, Table class, something else? It doesn't have to be super fancy, its more about getting data on the screen :)
@Codemycom3 жыл бұрын
It depends completely on you and what you need. I have lot's of videos throughout this playlist on that very thing. Take you pick.
@solariz_galaxy Жыл бұрын
Great tutorital. I know it's an old video but it would be really nice if you could do zoom out of the display. It's hard to see the all lines of code (or most of them) while you're explaining.
@Codemycom Жыл бұрын
the code is in the pinned comment, as always.
@maksymprotsak33162 жыл бұрын
Thank you for a lesson!
@alpapatel51824 жыл бұрын
Hello John ! Can we add sqlite3 database data to this tree view? Plz reply !
@Codemycom4 жыл бұрын
Of course.
@mustafamontaser49553 жыл бұрын
you make it so easy thanks a lot
@Codemycom3 жыл бұрын
Glad you're enjoying the videos!
@erensolmaz24352 жыл бұрын
thanks for treeview lessons
@Codemycom2 жыл бұрын
Glad you liked em!
@erensolmaz24352 жыл бұрын
@@Codemycom i have question, could we add new column when code is running?
@Codemycom2 жыл бұрын
@@erensolmaz2435 why not?
@goforbrokefilmstudios3 жыл бұрын
Is there a way to prevent the expansion triangle from being indented in sub rows? I want my expansion triangles to always be up against the left side no matter how indented the rest of the row is.
@sportiano33482 жыл бұрын
thanks man👍 but i have a question , how can i show treeview values in text widget and print by .txt file or Excel file??
@Codemycom2 жыл бұрын
I have videos on all that
@ANIKETMOHANK-CE-10 ай бұрын
Sir,I want to show another treeview when I click on row of treeview but it is happening for anywhere click on treeview, Can you help me
@phudinhtruong3 жыл бұрын
very helpful video
@Codemycom3 жыл бұрын
Thanks! Glad you liked it!
@phudinhtruong3 жыл бұрын
@@Codemycom i just build an app by your lesons thanks alot
@Codemycom3 жыл бұрын
@@phudinhtruong Awesome!
@phudinhtruong3 жыл бұрын
@@Codemycom love your contents
@phudinhtruong3 жыл бұрын
@@Codemycom what u r doing for us are so amazing
@pythoncoder68504 жыл бұрын
Your tkinter videos really helped me out, And can you make videos about Kivy mobile application Looking forward 👀
@Codemycom4 жыл бұрын
Yep, Kivy coming very soon...maybe next week.
@pythoncoder68504 жыл бұрын
@@Codemycom Thanks
@Codemycom4 жыл бұрын
@@pythoncoder6850 for sure...Kivy is fun
@mysterium36410 ай бұрын
I am trying to figure out how to put check boxes for selection state on the side. I'm sure I will figure it out soon.
@nicolasdegaudenzi28026 ай бұрын
Hii, is there any chance I can add a footer to my treeview, that allows me to watch the contents the whole time, as the heading does. Thank you!
@Codemycom6 ай бұрын
I'm not aware of that
@nicolasdegaudenzi28026 ай бұрын
okey thanks!! @@Codemycom
@parsabahrambeik43814 жыл бұрын
Thank you very much for your video.
@Codemycom4 жыл бұрын
You are welcome
@zhannashangitova3 жыл бұрын
Please Could you tell me, if I need to create a database and add information by rows (not by columns). How Can i make it?
@Codemycom3 жыл бұрын
I have videos on using a database further in the playlist. And you have to have both rows and columns, it's impossible otherwise.
@NotBeHaris4 жыл бұрын
another great tutorial.
@Codemycom4 жыл бұрын
Thanks!
@scott89404 жыл бұрын
Where do you obtain a man page or reference for most up to date and all of the tkinter commands, language syntex, etc. ?
@Codemycom4 жыл бұрын
Not sure there are any tkinter man pages
@zeevholodovski47273 жыл бұрын
I need to scan a server, that has values and nodes. Each node may have a children nodes and so on. I scan it recursively. Is it possible to use Treeview to show the contects of a server?
@Codemycom3 жыл бұрын
what contents? Treeview can show any data that you have access to
@luigi26063 жыл бұрын
how do you do for many text, example: some lines of text
@mr.perfect97862 жыл бұрын
my_tree['show'] = 'headings' and the column with #0 will be hidden
@harshasrikanugula6225 Жыл бұрын
Hi john, how can we add check boxes with select all option and to select and unselect the rows in a treeview?
@Codemycom Жыл бұрын
I don't have any videos on that
@harshasrikanugula6225 Жыл бұрын
Is there any way to do that?
@Codemycom Жыл бұрын
@@harshasrikanugula6225 Sure
@sarahmadhavank39253 жыл бұрын
Thanks a lot sir !! It was very helpful
@Codemycom3 жыл бұрын
Glad it was helpful!
@kabir737222 жыл бұрын
Hellow Dear could you explain about how we can do that start column from right side to left side for Arabic language?Thanks
@danielalegriasallo55513 жыл бұрын
thanks for the tut.
@Codemycom3 жыл бұрын
Sure thing
@uekihunter752 Жыл бұрын
I think that ghost column was allocated for the numbering of the items.... MAYBE....
@ClusterSeries4 жыл бұрын
Can we send emails using python ?? 🤔
@hariramreddy90193 жыл бұрын
Can we create multiple treeview associated with combobox so that for each option in combobox will have separate treeview
@hariramreddy90193 жыл бұрын
Any help regarding this small problem can any one give me small logic i have tried but unable to get exact logic
@Codemycom3 жыл бұрын
Sure, why not?
@akshitstenaa3 жыл бұрын
you the BEST
@Codemycom3 жыл бұрын
thanks
@s.v.prashath74413 жыл бұрын
sir actually i want to fill a *cell* with many string.... if i fill the by treeview its hiding so pls tell how to increase the row height like column sir
@muratdramal20362 жыл бұрын
Thank you for your wonderful videos! How can I add the the indices of the dataframe to the rows of the phantom column when I initialize the tree with the following code? tree = ttk.Treeview(root) tree.pack() df=pd.read_excel("Iris.xlsx") df_rows=df.to_numpy().tolist() cols = list(df.columns) tree['columns'] = cols for col in cols: tree.heading(col, text=col) for row in df_rows: tree.insert("", "end", values=row) tree.column('#0', width=50, stretch='no')
@vishaldedavat68353 жыл бұрын
sir how to clear the treeview from gui .. i am making a gui for dbms project.. and i am using treeview to display table.
@Codemycom3 жыл бұрын
I discuss this in an earlier treeview series on the channel: kzbin.info/www/bejne/qqe7d6ODfNF7hs0
@armaankhaitan6741 Жыл бұрын
How to attach a command to each treeview row. Like when i select a row some function of my creation is run
@Codemycom Жыл бұрын
I have tons of videos on treeview, check them out
@improveyourlisteningskills21162 жыл бұрын
Thanks a lot 😄
@Codemycom2 жыл бұрын
Welcome!
@apoorv94924 жыл бұрын
Can this treeview widget be used as a playlist for music player? Which has column like track name, artist, genre, length and all that.
@Codemycom4 жыл бұрын
I don't see why not...it would take quite a bit of hacking around, so I'm not sure why you'd want to...
@apoorv94924 жыл бұрын
@@Codemycom Nice, if you could do a tutorial for it, it would be great. I know that `mutagen.File(filepath, easy=True)` returns a dictionary of information tags inside the music file. So I can do a for loop, and use the index of those to insert into specific columns maybe ... Well, what's the point of learning to code, if you can't experiment :D.
@Codemycom4 жыл бұрын
@@apoorv9492 ha, yeah you're on your own for this one ;-)
@apoorv94924 жыл бұрын
@@Codemycom I wanted to ask another thing, you showed how to `askopenfilename()`, what if I want to add a folder, or bunch of folders instead of files?
@Codemycom4 жыл бұрын
@@apoorv9492 What do you mean? How do you add a folder? What does that mean?
@LAVEMOBIT2 жыл бұрын
Good morning, can you help me with Python? I have a Python program that takes data and writes it to a database. But I need to add a function that takes the registration date, and counts 90 days, and after 90 days print a message to the user informing that the registration already has 90 days, you know? I'm researching on the internet but I'm not able to develop something that works, I don't know anyone who understands and can help me with this, can you help me?
@Codemycom2 жыл бұрын
This is trivial, but sorry I don't have any videos on it and don't do consulting work.
@consultmohamedgamal56433 жыл бұрын
very good
@Codemycom3 жыл бұрын
Thanks
@mf6480verstraete4 жыл бұрын
hey thank you so much for the awesome tutorials again! I'm having a little bit of trouble. I'm getting an error saying: unknown option "-idd". That's pretty strange becaus it is an option ;p can someone help me pleas becaus I really want to continue with these tutorials they're verry interesting. Greetings from Belgium!!!
@aryanparekh93144 жыл бұрын
it's `iid` not `idd` 😂😂
@raghulk22194 жыл бұрын
Hey thank u for the video... I am getting an error... _tkinter.tclerror item not found Can you clarify it please...
@Codemycom4 жыл бұрын
what's the entire error
@quteibaalsalaa63463 жыл бұрын
when i add like 20 columns my screen will expand and i can not see the end, if there any method where i can fix that, like the Treeview could be expand in the Fram but not the Fram! thanks
@Codemycom3 жыл бұрын
Do you mean like with a scrollbar?
@quteibaalsalaa63463 жыл бұрын
@@Codemycom yes
@quteibaalsalaa63463 жыл бұрын
@@Codemycom i used the Pack method and git ride of the Grid method for the sscrollbar with expand=X and expand=Y and it work for me, thnak's for support
@quteibaalsalaa63463 жыл бұрын
one another question as you are profi, what do you think is the most beautiful GUI libs from python? i find tkinter look very old, but you made it junger ;) any idea modern GUI with powerful resourcess on Internet?
@Codemycom3 жыл бұрын
@@quteibaalsalaa6346 No, it just depends on the requirements for your specific project.
@chiahsiungliang67634 ай бұрын
謝謝!
@Codemycom4 ай бұрын
thanks!
@yafethtb2 жыл бұрын
17:46 I think rather than manually using count as variable, it will be better to use enumerate instead.
@Codemycom2 жыл бұрын
My way works...enumerate works...there are always a million ways to do anything. There is no right or wrong in coding, really.
@gmramkumar95363 жыл бұрын
thanks dude
@Codemycom3 жыл бұрын
Happy to help
@ramlaxmanjanki Жыл бұрын
How to save tree data as pdf or print hardcopy
@paulp-g4u2 жыл бұрын
Thanks man
@Codemycom2 жыл бұрын
Welcome!
@dkildkil234 Жыл бұрын
How can I insert text with spaces it's not found
@masekin2 жыл бұрын
Thanks
@Codemycom2 жыл бұрын
Welcome
@govindarajg2523 жыл бұрын
Thanks Sir, Very Nice Use Full Code
@Codemycom3 жыл бұрын
Welcome
@nikodemkarcz3104 жыл бұрын
How can we upgrade treeview? I mean user will write something in entry to appear on this
@Codemycom4 жыл бұрын
I think I cover that later
@shlokbajaj21333 жыл бұрын
if we are writing from tkinter import * why do we need tp write from tkinter import ttk?
@Codemycom3 жыл бұрын
Because that's just how it works
@danielzheleznov724 жыл бұрын
What is the difference between a Treeview and a Listbox
@Codemycom4 жыл бұрын
really? they're completely different
@asifsaad58274 жыл бұрын
if we keep it like this: my_tree.column("#0",width=0,minwidth=0,stretch=NO) stretch does not work!! why?
@Codemycom4 жыл бұрын
It should...try removing the minwidth thing... did you import tkinter the same way that I do? make sure you spelled stretch correctly
@asifsaad58274 жыл бұрын
@@Codemycom it worked!! thanks! keep up the good work!!
@Codemycom4 жыл бұрын
@@asifsaad5827 awesome
@miraceti564 жыл бұрын
hi, the minwidth=0 make the first column disapear too :=) very good tutorials thanks a lot
@Codemycom4 жыл бұрын
You're welcome
@websell15412 жыл бұрын
thanx
@Codemycom2 жыл бұрын
Welcome!
@akcandlestick89484 жыл бұрын
thks for this video john! sir Please how to put Treeview color
@Codemycom4 жыл бұрын
I believe you can use tags like in the text box widget
@tazulislam26982 жыл бұрын
Thanks. Waiting for pagination in treeview. Please!
@Codemycom2 жыл бұрын
Interesting suggestion!
@khizarkhan82524 жыл бұрын
sir i m big fan of you your videos are really helpful sir i start working on treeview but when i use this i have error that ttk is not in tkinter so sir please tell how to install ttk
@Codemycom4 жыл бұрын
There is nothing to install, you just have to import it at the top of your program like I do in the videos.
@khizarkhan82524 жыл бұрын
@@Codemycom attribute error : module ' tkinter' has no attribute ' Treeview' Respected sir i m importing like you import in video but i got this error kindly tell what i did with this error i m waiting for your reply??????
@Codemycom4 жыл бұрын
@@khizarkhan8252 import tkinter.ttk as ttk my_tree = ttk.Treeview(...
@khizarkhan82524 жыл бұрын
@@Codemycom wow its working your are really helpful thankue so much
@Romalian3 жыл бұрын
How do you make it so the child is indented when clicked