Python Forum
running python script showing an icon in the tray notification area - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: running python script showing an icon in the tray notification area (/thread-30688.html)



running python script showing an icon in the tray notification area - chubbychub - Nov-01-2020

i have a python script running on version 3.7.3, i want to run the script in the background but showing an icon in the tray notification area in windows 10. Could someone point me to the right direction or shared a current script to do this? thanks in advanced

PS. The purpose is to see the program in the tray notification area while having the cmd windows closed.


RE: running python script showing an icon in the tray notification area - jefsummers - Nov-01-2020

I found a way and tested and this works.

infi.systray

The page includes installation (simple) and a sample/test program. If you use that you will need to change the print statement - the test was in Python 2, so just put parentheses around the "Hello World" and it will work fine.

My test -
Windows 10 64 bit
Python 3.85
VSCode under Anaconda