2018-12-28 23:09:46 +08:00
|
|
|
# QMessageBox
|
|
|
|
|
2019-03-12 12:47:56 +08:00
|
|
|
- 目录
|
2019-05-22 11:07:42 +08:00
|
|
|
- [消息对话框倒计时关闭](#1消息对话框倒计时关闭)
|
|
|
|
- [自定义图标等](#2自定义图标等)
|
2019-03-12 12:47:56 +08:00
|
|
|
|
2018-12-28 23:09:46 +08:00
|
|
|
## 1、消息对话框倒计时关闭
|
|
|
|
[运行 CountDownClose.py](CountDownClose.py)
|
|
|
|
|
|
|
|
1. 通过继承`QMessageBox`实现倒计时关闭的对话框
|
|
|
|
1. `QTimer`定时器关闭窗口
|
|
|
|
|
2018-12-31 14:49:29 +08:00
|
|
|
![CountDownClose](ScreenShot/CountDownClose.gif)
|
|
|
|
|
|
|
|
## 2、自定义图标等
|
|
|
|
[运行 CustomColorIcon.py](CustomColorIcon.py)
|
|
|
|
|
|
|
|
![CustomColorIcon](ScreenShot/CustomColorIcon.png)
|