问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/4385656/tkinter-how-to-make-a-system-tray-application