This article mainly explains the desktop graphics application examples that can be minimized to the tray made using python and pyqt.
Date: June 11, 2023
Author: Ren Congcong
Effect demonstration
Description: Realize the desktop application display window, close the window and shrink it to the tray, click the tray to display the window, and the mail icon displays the exit button, click the exit button to close the application.
Dynamic demonstration:
Actual situation:
Environmental preparation
1. Install the pyqt library
pip install pyqt5
The following prompt is that I have already installed it. If it is not installed, the download and installation progress will be displayed. The picture below is for display purposes only.
2. Import package
import sys
from PyQt5.QtWidgets import QApplicatio