Open Excel Spreadsheets In Treeview - Tkinter Projects 3

preview_player
Показать описание
In this video I'll show you how to open an Excel .xlsx file into a Treeview widget with Tkinter and Python!

We'll use Pandas, Numpy, TTK Treeview, and customTkinter to do this.

You may also need to pip install openpyxl to make this work.

#tkinter #codemy #JohnElder

Timecodes

0:00​​ - Introduction
1:27 - Install and Import Numpy and Pandas
2:09 - Import ttk, filedialog, messagebox
2:33 - Build Out Our GUI
3:48 - Open File With FileDialog
5:30 - Create Excel DataFrame With Try/Except
6:25 - Error Handling
7:53 - Clear The Treeview
8:34 - Get Headers
10:40 - Show Excel Data In Treeview
12:09 - Style Treeview
14:45 - Hack Treeview Header Height
15:51 - Change Treeview Header Color
16:43 - Conclusion
Рекомендации по теме
Комментарии
Автор

▶ Watch Tkinter Projects Playlist ✅ FREE Tkinter Widget Book
▶ See More At: ✅ Subscribe To My YouTube Channel:
▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
▶ Get The Code For This Video

TkinterPython
Автор

Very nice application! Thanks! I especially like the change the row height hack. Clever.

thebuggser
Автор

thank u so much for the helpful videos .... cant wait for more

georgecodeing
Автор

Hi, is a great video very constructive, thank you

alfredomolina
Автор

@TkinterPython nice video, please say: how to edit and values at the treeview??? thank you

Eirstream
Автор

great video! does it work with csv files?

sebsincognito
Автор

I realize that we can rid the #0 column in the Treeview fill data loop. Thanks!

el_munoz
Автор

i get value from excel to treeview but integer showing with decimal value. i dont want decimal value, i tried many ways but it showing like 1.0 what to do

pc-knkt
Автор

You have an amazing teaching style. I do not have much knowledge in tkinter ...or python for that matter (as i am still learning this for work). But, I understood everything and am super excited to learn this further! Thank you! :)

grif
Автор

Hi, thanks for the video . I tried the same code but it seems like I can’t read excel files . I have the following error message : UnicodeDecodeError: ´utf-8 code can’t decode byte 0xec in position 14: invalid continuation byte ‘. Can you help me please ?

marcelledibondji