Tkinter: How to make a system tray application?

余生颓废 提交于 2019-12-19 00:25:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!