Exemplo n.º 1
0
 def __init__(self, app):
     self.icon = QIcon(
         resourcePath(os.path.join("vi", "ui", "res", "logo_small.png"))
     )
     QSystemTrayIcon.__init__(self, self.icon, app)
     self.setToolTip("Your Spyglass Information Service! :)")
     self.lastNotifications = {}
     self.setContextMenu(TrayContextMenu(self))
     self.showAlarm = True
     self.showRequest = True
     self.alarmDistance = 0
Exemplo n.º 2
0
 def __init__(self, main_window):
     QSystemTrayIcon.__init__(self)
     self.main_window = main_window
     self.setIcon(QIcon(LOGO_PADDED_PATH))
     self.initialize_context_menu()