MCPcopy Index your code
hub / github.com/PyQt5/PyQt / stop_flash

Method stop_flash

QSystemTrayIcon/TrayNotify.py:48–53  ·  view source on GitHub ↗

停止闪烁后需要显示图标

(self)

Source from the content-addressed store, hash-verified

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 """根据当前图标是否可见切换图标"""

Callers 1

closeEventMethod · 0.95

Calls 2

setIconMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected