Tkinter: How to make a system tray application?

Kennedy picture Kennedy · Dec 8, 2010 · Viewed 10.7k times · Source

i have a small application. I want my target users(windows,linux) to be able to start and exit the application from the system tray. I intend to use Tkinter because of its low footprint but, i dont know how to implement it.

Can tkinter do this or are there better alternatives. I need a GUI library that won't change my 1MB program to a 5MB program.

Please sample codes will be appreciated

Thanks

Answer

Noufal Ibrahim picture Noufal Ibrahim · Dec 8, 2010

I don't know any direct examples but I found a TCL/Tk extension to use the systray over here http://wiki.tcl.tk/4090 and a page on the wiki giving information on how to use TCL/Tk extensions from Tkinter.

On a more general note, you might want to consider using a more "advanced" toolkit (like wx) that provides things like systray usage etc. natively.