def minimize_in_system_tray(self):
"""
Minimize B3 in system tray icon
"""
if b3.getPlatform() != 'linux':
# do not use system tray on linux since it looks bad on Ubuntu
# which is the mainly used Linux client distribution (they can live without it)
self.hide()
if not self.system_tray_minimized:
self.system_tray_minimized = True
self.system_tray.showMessage("B3 is still running!",
self.system_tray_balloon[b3.getPlatform()],
QSystemTrayIcon.Information, 20000)
############################################# ACTION HANDLERS ######################################################
评论列表
文章目录