Skip to content
Advertisement

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.

Advertisement

Answer

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]AppDataRoamingMicrosoftWindowsStart MenuProgramsStartup

Windows XP

c:Documents and Settings[username]Start MenuProgramsStartup

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement