Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2
- from PyQt5 import QtGui, QtWidgets
- import signal
- signal.signal(signal.SIGINT, signal.SIG_DFL)
- app = QtWidgets.QApplication([])
- icon = QtGui.QIcon('clock.png')
- tray = QtWidgets.QSystemTrayIcon(icon)
- tray.show()
- app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement