PyQt5 Tutorial | Expense Data Entry Form Tutorial (Code Included)

preview_player
Показать описание
In this tutorial we are going to learn how to build a multi-function data entry form to log expenses with pie chart function built-in.

Your support is what makes better tutorial materials.

Things we will be learning throughout this tutorial:
- Build a simple window application (QMainWindow)
- A table to track various of expenses (QTableWidget)
- Input fields to enter description and price (QLineEdit)
- Push Buttons to perform various actions (QPushButton)
- Data Validation to ensure both description and price are provided
- A pie chart to visually display expense allocation
- Menu items to export table to a CSV file and quit application

Python Code Here:

About PyQt:
PyQt is a GUI library in Python based on the Qt framework. With over 100 modules and 1,000 classes, you can literally build anything fits your needs. Although PyQt is not an easy library to learn, but once you get a hang of it, you will fall in love with building applications with PyQt.

PyQt API Documentation:

More tutorial videos on my website

#PyQt5 #PyQt
Рекомендации по теме
Комментарии
Автор

sir, i bought you a coffee. i appreciate your tutorial. it's valuable to a wannabe python coder like me.

jerryrodelas
Автор

Thanks a lot Jie, I'm learning a lot from your tutorial.
I'll suggest you allow only digits in the price input field.
line 99 should the be: if and

emmanueldaniel
Автор

Hello Jie,
love the platform. but if you had a combobox how would you add it to the table

mariannanakabuye
Автор

Can I do it with QCombo boxes instead of QlineEdits

da-codes