How to build a SystemTray app for Windows?


I usually work on a Linux system, but I have a situation where I need to write a client app that would run on windows as a service. Can someone help me or direct, on how to build a system tray app (for example like dropbox) for the windows environment, which gets started on OS startup and the icon sits in the TaskBar and on clicking the app icon presents a menu.

My scripting language is python. Thanks.


You do this using the pywin32 (Python for Windows Extensions) module.

Example Code for Python 2

Similar Question

To make it run at startup you could mess around with services but it’s actually much easier to install a link to the exe in the users “Startup Folder”.

Windows 7 and Vista

c:\Users\[username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Windows XP

c:\Documents and Settings\[username]\Start Menu\Programs\Startup

Answered By – SpliFF

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published