PyQt5 QTableWidget tutorial: Load Excel data into Table Widget [Python, openpyxl, PyQT5]

  Рет қаралды 17,359

Code First with Hala

Code First with Hala

Күн бұрын

Load data from Excel table into PyQt5 QTableWidget. Use Excel and openpyxl with Python and PyQt5. Learn how to load Excel data using openpyxl and load the data into a Table Widget, or QTableWidget with Python PyQt5. Display data in your Table Widget.
In this video, you will:
- Work with PyQt5
- Use QTableWidget or PyQt5 Table Widget
- Install openpyxl
- Use openpyxl with Python
- Load Excel data in Python
- Display data in the table widget
- Create QTableItem
- Add QTableItem
Source code: github.com/codefirstio/excel-...
Source of Excel file download: www.downloadexcelfiles.com/wo...
For more info:
Install and Setup PyQt5 and Qt Designer: • Install and Setup PyQt...
PyQt5 tutorials playlist: • PyQt5 tutorials
Timestamps:
00:00 Introduction
00:49 Project setup
02:30 Starter code
05:44 Creating a QTableWidget
07:05 Loading data from Excel using openpyxl
08:43 Setting the rows, columns, and header for the QTableWidget
12:58 Populating the QTableWidget
Socials:
My email: code.first.io@gmail.com
Tiktok: / hala.codes
*************
*Tags*
PyQt5
Python Excel
Openpyxl Tutorial
PyQt5 tutorial
PyQt5 module
PyQt5 openpyxl
GUI tutorial Python
GUI Project Python
Graphical User Interface Python
Python tutorial
openpyxl
openpyxl tutorial
learn openpyxl

Пікірлер: 33
@user-go4kv4ez7f
@user-go4kv4ez7f Жыл бұрын
Мне очень нравятся твои уроки. Очень доступно и интуитивно понятно, даже с таким плохим знанием английского языка как у меня.👍
@maradonam26
@maradonam26 4 ай бұрын
Thank you for this! Perfect! I have a issue. How can i filter in this app. I wanna filtering in excel table.
@user-be9cs2fo1e
@user-be9cs2fo1e 10 ай бұрын
Very simple and clear. Thank you so much
@lucianocarneiro5962
@lucianocarneiro5962 Жыл бұрын
What an amazing video! Congrats for the superb content! I'm learning a lot... Cheers from Brazil!
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Glad you enjoyed it! 😊
@henrikyoservo
@henrikyoservo 7 ай бұрын
I really like your explain! Please don't let of post your videos. TKS.
@mihai-mirceamoise4861
@mihai-mirceamoise4861 Жыл бұрын
Very cool and useful video! Thank you!
@rverm1000
@rverm1000 9 ай бұрын
Excellent ive never worked with qtwidget before. nice to have a free alternative to excel
@luizcarlos7057
@luizcarlos7057 7 ай бұрын
Parabéns, pela explicação, consegui terminar meu projeto com suas explicações🤩
@arturjurkowski8424
@arturjurkowski8424 Жыл бұрын
Thank you soo much, I was looking for somethink like this for last 2 weeks. You are the BEST!
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Glad I could help! Thanks for watching :)
@Error000Max
@Error000Max Жыл бұрын
it's a very simple and smart way, thx! ❤😊
@andr101
@andr101 Жыл бұрын
very easy to follow and well explained! What would be a good strategy performance-wise to populate a table with millions of rows and many columns?
@33jetset
@33jetset Жыл бұрын
you are the best, tks for this!
@ahmedelghazali2587
@ahmedelghazali2587 Жыл бұрын
thanks a lot شكرا جزيلا
@ahmedelshamy9558
@ahmedelshamy9558 Жыл бұрын
many thank hala
@muhammadprawirayuda3510
@muhammadprawirayuda3510 Жыл бұрын
Hi Hala, how about avoiding freezing gui apps when i want to load a ton of data from sqlite db, thanks
@HellakatsPlayhouse
@HellakatsPlayhouse Жыл бұрын
oooh, niice. Finally find how to start up a window on fullscreen. A big thanks! And what about editable tables in our window, saying, an our own lil Excel with some functions of above?
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Thanks for a suggestion! I'll make sure to include such a video soon with a more interactive interface
@HellakatsPlayhouse
@HellakatsPlayhouse Жыл бұрын
@@codefirstwithhala yaaay, thanks)
@Vijaykeerthy
@Vijaykeerthy Жыл бұрын
this video helps so much thanks for uploading this video 🎉🎉🎉 Still, How to load the CSV file in the pyqt5😢
@jhxu8071
@jhxu8071 Жыл бұрын
nice vedio!how to insert pictures to a column?
@annasanasaryan
@annasanasaryan 10 ай бұрын
not sure why, but I keep on getting an error because of the openpyxl... I have tried ALL the solutions for how to make to work, however couldn't make it work....
@enadagilda6577
@enadagilda6577 10 ай бұрын
Please Madam! i want to send my QTableWidget in a particular widget in my ui interface. how can i do please?
@annasanasaryan
@annasanasaryan 10 ай бұрын
One option would be to use Qt Creator or Qt Designer. However, if you are looking for creation of the UI from scratch via python code, there should be videos dedicated to that matter on KZbin.
@alkareetesh8193
@alkareetesh8193 Жыл бұрын
How to do the reverse process database to excel
@annasanasaryan
@annasanasaryan 10 ай бұрын
I would create a button, connect the button to a method and complete the task via xlwt. I have seen some examples in StackOverflow by searching "How to export data from QTableWidget to Excel".
@SHONNER
@SHONNER Жыл бұрын
The '% of world pop.' is divided by 100 for some reason?
@user-ct1vg9ps5j
@user-ct1vg9ps5j 10 ай бұрын
That's the original value stored in the spreadsheet. You see, a value of 0.5 is displayed in Excel as 50% (formatted as percentage) and a value of 1 is displayed as 100%. That's how percentages should be properly stored in an Excel file: a value between 0 and 1.
@SHONNER
@SHONNER 10 ай бұрын
@@user-ct1vg9ps5j Sounds good.
@perlasaadeh3322
@perlasaadeh3322 Жыл бұрын
Thank you for this! Amazing content as always.
@codefirstwithhala
@codefirstwithhala Жыл бұрын
Thanks for watching!
@zakihasan8042
@zakihasan8042 Жыл бұрын
@@codefirstwithhala شكرا الك لمجهودك وابداعك
How to import Excel Data to a QTableWidget | PyQt6 Tutorial
12:24
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 23 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,9 МЛН
PyQt5 QTableWidget tutorial: Load data, fill tables, format tables [Table Widget]
18:04
Automate Excel With Python - Python Excel Tutorial (OpenPyXL)
38:02
Tech With Tim
Рет қаралды 1,5 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 794 М.
creating tables in tkinter with the treeview widget
14:44
Python Tkinter Load Excel Data tutorial [openpyxl, tkinter]
14:22
Code First with Hala
Рет қаралды 18 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 370 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,7 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 171 М.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,6 МЛН