notifications added, some fixes
This commit is contained in:
10
src/notifications.py
Normal file
10
src/notifications.py
Normal file
@ -0,0 +1,10 @@
|
||||
from PySide import QtGui, QtCore
|
||||
# TODO: add sound notifications
|
||||
|
||||
|
||||
def tray_notification(title, text):
|
||||
if QtGui.QSystemTrayIcon.isSystemTrayAvailable():
|
||||
tray = QtGui.QSystemTrayIcon()
|
||||
tray.setContextMenu(QtGui.QMenu())
|
||||
tray.show()
|
||||
tray.showMessage(title, text)
|
Reference in New Issue
Block a user