No video

Open Excel Spreadsheets In Treeview - Tkinter Projects 3

  Рет қаралды 21,537

Tkinter․com

Tkinter․com

Күн бұрын

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

Пікірлер: 30
@TkinterPython
@TkinterPython Жыл бұрын
▶ Watch Tkinter Projects Playlist ✅ FREE Tkinter Widget Book bit.ly/3AeVo0d 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
@thebuggser2752
@thebuggser2752 9 ай бұрын
Very nice application! Thanks! I especially like the change the row height hack. Clever.
@TkinterPython
@TkinterPython 8 ай бұрын
Thanks!
@georgecodeing7907
@georgecodeing7907 Жыл бұрын
thank u so much for the helpful videos .... cant wait for more
@TkinterPython
@TkinterPython Жыл бұрын
More coming soon!
@alfredomolina2697
@alfredomolina2697 Жыл бұрын
Hi, is a great video very constructive, thank you
@TkinterPython
@TkinterPython Жыл бұрын
Welcome!
@obulnaidu3464
@obulnaidu3464 Жыл бұрын
Thank you so much
@TkinterPython
@TkinterPython Жыл бұрын
Very welcome!
@sebsincognito
@sebsincognito Жыл бұрын
great video! does it work with csv files?
@grif5332
@grif5332 Жыл бұрын
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! :)
@TkinterPython
@TkinterPython Жыл бұрын
Awesome! Keep it up!
@user-rr2vs8zl4u
@user-rr2vs8zl4u Жыл бұрын
Thank you~~As Always~~!!
@manarmimi3073
@manarmimi3073 Жыл бұрын
Thank you cir
@TkinterPython
@TkinterPython Жыл бұрын
Welcome!
@el_munoz
@el_munoz Жыл бұрын
I realize that we can rid the #0 column in the Treeview fill data loop. Thanks!
@TkinterPython
@TkinterPython Жыл бұрын
Sure thing!
@Eirstream
@Eirstream 9 ай бұрын
@TkinterPython nice video, please say: how to edit and values at the treeview??? thank you
@TkinterPython
@TkinterPython 9 ай бұрын
I have videos on the channel that teach that
@ayushmuley1907
@ayushmuley1907 Жыл бұрын
Thanks
@TkinterPython
@TkinterPython Жыл бұрын
Welcome!
@angeljimenex880
@angeljimenex880 Жыл бұрын
Tengo problemas con List
@jiovanniabdelmalak296
@jiovanniabdelmalak296 Жыл бұрын
need the other half of the video!
@TkinterPython
@TkinterPython Жыл бұрын
What other half? What do you mean? The video is complete.
@pc-kn7kt
@pc-kn7kt 7 ай бұрын
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-kn7kt
@pc-kn7kt 7 ай бұрын
got it. exceltrv1.heading('a', text="a", anchor=W) for row in dftoken.iterrows(): a= row[1]['a'] exceltrv1.insert("", 0, values=(int(a)))
@marcelledibondji4215
@marcelledibondji4215 Жыл бұрын
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 ?
@TkinterPython
@TkinterPython Жыл бұрын
What did google tell you when you googled the error?
@GyanSingh-xc6gt
@GyanSingh-xc6gt 6 ай бұрын
Good sir
Style And Theme Your App The Easy Way - Tkinter Projects 4
16:17
Tkinter․com
Рет қаралды 18 М.
Dark Mode in Tkinter Applications Made Simple
22:36
NeuralNine
Рет қаралды 6 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 11 МЛН
Pack Vs Grid For Placement - Intro To Tkinter 3
13:20
Tkinter․com
Рет қаралды 2,1 М.
creating tables in tkinter with the treeview widget
14:44
How to view Excel File or Pandas DataFrame in Tkinter (Python GUI)
29:16
Tkinter - Treeview Configure Columns and Headers
18:44
JobinPy
Рет қаралды 6 М.
Automate Excel Work with Python and Pandas
21:29
John Watson Rooney
Рет қаралды 94 М.