tooltip in systray
authorstack <stack@inventati.org>
Sun, 8 Jul 2012 00:54:01 +0000 (02:54 +0200)
committerstack <stack@inventati.org>
Sun, 8 Jul 2012 00:54:01 +0000 (02:54 +0200)
gui.py
settings.py

diff --git a/gui.py b/gui.py
index c9bd3d5..81165a0 100755 (executable)
--- a/gui.py
+++ b/gui.py
@@ -37,6 +37,7 @@ import os
 from PyQt4 import QtGui
 
 from apperror import AppError
+from settings import appconf
 
 class Gui(QtGui.QDialog):
     def __init__(self, prManager):
@@ -62,9 +63,7 @@ class Gui(QtGui.QDialog):
 
         self.profileManager = prManager
 
-
-
-    def main(self):
+    def main(self): 
         sys.exit(self.app.exec_())
 
     def closeEvent(self, event):
@@ -86,3 +85,4 @@ class Gui(QtGui.QDialog):
 
          self.trayIcon = QtGui.QSystemTrayIcon(self)
          self.trayIcon.setContextMenu(self.trayIconMenu)
+         self.trayIcon.setToolTip(appconf.appname+" "+appconf.appversion+"\nRight Click to manage profiles.")
index 7c82d1e..550c7db 100644 (file)
@@ -3,6 +3,8 @@
 class Settings():
     def __init__(self):
         self.appname = "dboxswitch"
+        self.appversion = "0.1"
+        self.icon    = "icon.xpm"
 
 global conf
 appconf = Settings()