Treeview Update Records - Python Tkinter GUI Tutorial #121

preview_player
Показать описание
In this video I'll show you how to update the records or rows of data in your Treeview with Tkinter and Python.

We've looked at creating records and deleting them, but we haven't looked at updating them yet, and it's actually pretty easy!

We'll just grab the record number using the .focus() function, and then grab the current values with .item() before outputting those values to entry boxes that we can update, and then save again using the .item() function again.
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Thanks John! I really enjoy watching your videos about tkinter. When you visit the 10, 000 lakes states or the twin cities, please let me know. I’ll invite you a cup of coffee ☕️👍🏾😃

uwatchermirador
Автор

Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks

RyanDanielG
Автор

I follow you since a couple weeks and I have learned a lot, thank you!

alfredomolina
Автор

I stoped coding for a while ( I picked up a new job that needed me to learn a lot of new software so it took my focus and time ) and now I’m back and feel so intimidated to start over again lol good to see you tho Jhon

Fullrusher
Автор

Incredible best tutorial, regards from Chile !

peporoi
Автор

i cant find the words to thank you, thank you very much this is really helpfull for me, many thanks

brahimmellal
Автор

Thank you very much for your video. My learning about using Python Database was completed. Thank you very much.

parsabahrambeik
Автор

A great presentation 🤣that illustrates the value and power of the Treeview widget. Thanks! Would be useful to do a similar set of videos showing the use of Treeview with a sqlite3 database.

thebuggser
Автор

wow thanks a lot you are a genius.
questions:
1. how to add an arithmetic between 2 values in treeview (for example: john had yesterday 10$, today paid 2$, his rest 8$) ?
2/ how to add index count each row starting from 1 (for example if i have 2 rows in treeview so first row index is number 1 second row is number 2 and new row is number 3, and if i delete row number 1 so the second row becomes row number 1 and thirds row becomes number 2)?
3. how to add each new row to treeview on top (not into bottom)?
do you have a video or example to them?
thanks a lot :))

bentsionben-david
Автор

Thanks Codemy to post the videos. They are very helpful in learning python. Specific query to this vide. I build the code per vide. But its not working fully when I wanted to update only some fields.
I am able to show the specific field and copy correct field from selected record. But when I update back it updated the first column. Specific to your example, if I want update only toppigs then I am able to select only toppings and make change. But when I save it back, it goes and updates the Name instead of topping. Can you please post a video that can help update specific field back from the selected row?

adiy
Автор

Grear video. I have a problem with updating the treeview. I have a function which reads data from an api and adds the data to the treeview widget. A second later i want update the treeview records yo display the new values but this is not happening. Any idea on how to do this?

mannyribeiro
Автор

Hello, and thank you. Can you explain why you can use index here as integer?, but i don´t know it is the version ot tkinter, when i use treeview i can not use int index, i think i have to use in hexadecimal and with an 'I' at the beginning

zocroc
Автор

Sincere thanks for your valuable videos. really thank you. For example, it would be great if you used MySQL or SQL or Oracle in this video (instead of using an array). Thank you very much for this video. Good luck.

parsabahrambeik
Автор

can you do "Treeview Multiple update at the same time" ? I mean we select multiple rows and update them with the same value

aminegatou
Автор

How do you make a table cell fit longer text, where text continues one line below but the text is still in the same table cell?

samuelmyrbostad
Автор

Very Good
I hope you make a video about searching in a treeview
- Multy Search

consultmohamedgamal
Автор

URGENT!!!! what if I have to insert the values of entry widgets in tree view from the second column onwards? what is the code for that?

animeshsingh
Автор

Hi John!. I am happy with your videos. I learnt so many things, thank you so much. I have a question. Please help me!.
Is there any way to put entry boxes in treeview under the headings. I search so much, I found a code. It was so complicated.

durmusaliozturk
Автор

How can I update record not by selected but by write specific iid? I mean user have to write iid of record which he/she want to update

nikodemkarcz
visit shbcf.ru