v.licheni.net
/
stack
/
code
/
dboxswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
afc339f
)
tooltip in systray
author
stack
<stack@inventati.org>
Sun, 8 Jul 2012 00:54:01 +0000
(
02:54
+0200)
committer
stack
<stack@inventati.org>
Sun, 8 Jul 2012 00:54:01 +0000
(
02:54
+0200)
gui.py
patch
|
blob
|
history
settings.py
patch
|
blob
|
history
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 PyQt4 import QtGui
from apperror import AppError
+from settings import appconf
class Gui(QtGui.QDialog):
def __init__(self, prManager):
class Gui(QtGui.QDialog):
def __init__(self, prManager):
@@
-62,9
+63,7
@@
class Gui(QtGui.QDialog):
self.profileManager = prManager
self.profileManager = prManager
-
-
- def main(self):
+ def main(self):
sys.exit(self.app.exec_())
def closeEvent(self, event):
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 = QtGui.QSystemTrayIcon(self)
self.trayIcon.setContextMenu(self.trayIconMenu)
+ self.trayIcon.setToolTip(appconf.appname+" "+appconf.appversion+"\nRight Click to manage profiles.")
diff --git
a/settings.py
b/settings.py
index
7c82d1e
..
550c7db
100644
(file)
--- a/
settings.py
+++ b/
settings.py
@@
-3,6
+3,8
@@
class Settings():
def __init__(self):
self.appname = "dboxswitch"
class Settings():
def __init__(self):
self.appname = "dboxswitch"
+ self.appversion = "0.1"
+ self.icon = "icon.xpm"
global conf
appconf = Settings()
global conf
appconf = Settings()