停止闪烁后需要显示图标
(self)
| 46 | self.flash_timer.start(500) |
| 47 | |
| 48 | def stop_flash(self): |
| 49 | """停止闪烁后需要显示图标""" |
| 50 | if self.flash_timer.isActive(): |
| 51 | self.flash_timer.stop() |
| 52 | self.tray_icon.setIcon(self.style().standardIcon( |
| 53 | QStyle.SP_ComputerIcon)) |
| 54 | |
| 55 | def flash_icon(self): |
| 56 | """根据当前图标是否可见切换图标""" |
no test coverage detected