Рет қаралды 21,537
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