From f345826d581ce3c2894b36c9a56a17fc4b6cde90 Mon Sep 17 00:00:00 2001 From: stack Date: Sun, 8 Jul 2012 18:12:59 +0200 Subject: [PATCH 1/1] added dumb icon to tray --- gui.py | 4 +++- icon.png | Bin 0 -> 1301 bytes settings.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 icon.png diff --git a/gui.py b/gui.py index 81165a0..6ed893d 100755 --- a/gui.py +++ b/gui.py @@ -77,12 +77,14 @@ class Gui(QtGui.QDialog): self.quitAction = QtGui.QAction("&Quit", self, triggered=QtGui.qApp.quit) + def createTrayIcon(self): self.trayIconMenu = QtGui.QMenu(self) self.trayIconMenu.addAction(self.manageprofiles) self.trayIconMenu.addSeparator() self.trayIconMenu.addAction(self.quitAction) - self.trayIcon = QtGui.QSystemTrayIcon(self) + self.trayIcon = QtGui.QSystemTrayIcon(QtGui.QIcon(appconf.icon), self.app) self.trayIcon.setContextMenu(self.trayIconMenu) + #baloon on hover self.trayIcon.setToolTip(appconf.appname+" "+appconf.appversion+"\nRight Click to manage profiles.") diff --git a/icon.png b/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..110c285265e1ac46e5f03d317a0c7597bcec9398 GIT binary patch literal 1301 zcmV+w1?u{VP)AW3d!Z|pJm-v9sr7j#8fbU}4=Xm4@= zOkr?uAVXnnVQpb`=0cDUwWP=%jJ@EoV+~zZkx4Z&yKsV2Ruqer5@VZxVW*}va*Ci zVRXHMAn?iO^H^4vy1KdvSu@+Q|E*U3OVKE>=lQp&s!A%Apr&Rbm6ajNWe>whapvcr zsHmvq`RCT%5DrHG$UC`)&rW{YvG2{+y)VA-^0tvIWn^LJY+TpDbsa1#%g|7gc)XwA zFI_|^Di1%@L?{&gr#}*|;?YMQn=pCOq?dNL?!IeWuR+fbg3nzp$?e%fNiDYu~hsWEkP$*0g1mtoSrkTYp6!}|` zWo2=k9FCL6G&7`9NpxMuH0?Xb1$>#C`cXBN<@Y^6JTb`0lPBoy?F9k#b@kl8{6V78sO&iPxqG?ykJVc?Zv7ZQ z0D9BP71@m&UWxSg_cFZZ!~T*<1J4U+ZeDj~19N~xQB(keAV5(RB9Ur@5F9$(mhX-I zc~8r(mLF9h6pc<@b<>pE$