11 lines
297 B
Python
11 lines
297 B
Python
|
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)
|