- β¨ This is an pyqt5 example π₯
- π» It can be directly used for rapid development, database connection, login and registration
π―Including the software startup screen, which can be used to load the library in advance
π―Including login interface π―Including the registration interface π―Including database management interface π―Including the main window, real-time display of CPU utilizationπ―Includes the taskbar minimize icon
pyqt5_example/ # β Root
ββ doc (document related)
ββ config (program initialization configuration related)
β β skin (folder for storing skin)
β ββ config.py (configuration file)
ββ core (custom control)
β β CpuLineChart.py (line chart showing CPU utilization, which can be improved by yourself)
β β DynamicSpline.py (dynamic line chart, which can be improved by yourself)
β β FileIconProvider.py (file icon, you can continue to improve yourself)
β β ImageView.py (picture viewing control, supports zooming pictures, and can continue to improve by yourself)
β β MetroCircleProgress.py (dynamic progress bar, stateless continuous cycle)
β ββ MySystemTrayIcon.py (custom system tray icon class)
ββ res (resource folder used by the program)
β β app.qrc (qt-designer π» Edited resource collection file)
β ββ app_rc.py (pyrcc5 converted resource file, π« (do not modify))
ββ ui (UI folder of the program)
β β login_form.ui (login interface)
β β register_form.ui (registration interface)
β β mysql_form.ui (database management interface)
β β close_dialog.ui ((close prompt interface)
β ββ main_window.ui (main window file)
ββ models (database related folder)
β β db.sql (generate database file)
β ββ user.py (user table transaction logic)
ββ utils (folder of tool classes)
β β CommonHelper.py (public help class)
β β global_var.py (global variable class)
β β connect_mysql.py (connect to database)
β ββ logs.py (Global log display processing)
ββ win (window logical folder)
β β splash (software startup screen, used to load the deep learning library in advance)
β β close_dialog.py (close the processing logic of the button prompt box)
β β main_win.py (logical processing of main window)
β β login_form.py (logical processing of login interface)
β β register_form.py (logical processing of registration interface)
β ββ mysql_form.py (logical processing of database management interface)
ββ app.py (program entry file)
ββ .gitignore (git uploads ignored files)
ββ file_verison_info.txt (software version information)
ββ LICENSE (open source agreement supported by the project)
ββ pyqt5_example.spec (file packaged by pyinstaller)
ββ pyqt5_example_exe.spec (file packaged by pyinstaller)
ββ requirements.txt (project dependent Library)
ββ ui_to_py.bat
β ββ !Pay attention to coda environment modification
β ββ Start π» Automatically convert UI files using pyuic and pyrcc5
ββ start-qt-designer.bat
β ββ !Pay attention to modifying the coda environment path
β ββ Start π» QT designer tool
ββ README.md (project description document)
# CONDA creates Python virtual environment
conda create -n learn_pyqt5 python=3.8
# Activate environment
conda activate learn_pyqt5
# Installation Library
pip install -r requirements.txt
# Modify the MySQL server configuration information in `/config/config.py` in file
# Add a database to the database and run `/model/db.sql` file
# Pack
# It is packaged into many files. It is recommended to use it when it is very dependent
pyinstaller pyqt5_example.spec
# Package into a separate exe. It is recommended to use small files
# One drawback is that it will first read into memory and decompress the dependency to the cache directory.
# If the application is large, it is recommended to package it into a folder
pyinstaller pyqt5_example_exe.spec