简体   繁体   中英

Tkinter tray icon (winico, twapi, pywin32)

I am learning tkinter but get disappointed about the lack of a tray handling feature. So far, I found some tcl extensions: winico http://wiki.tcl.tk/4089 and twapi http://wiki.tcl.tk/9886 Unfortunately, I lack the ability to make python/c/tcl wrappers (if anyone know that can help ñ_ñ) Also I found pywin32 and write a little tray/console app, but I don't know how to use it with tkinter (it freezes the tk() window). However, I prefer to use extension instead of the windows api.

Is this mailing list message any help?

Edit with comment from @FelipeJavierV.H.:

So I contacted Michael Lange and he shared with me a wrapper he wrote for winico / tktray :

  1. Download winico .
  2. Unzip the winico folder in the tcl folder of your Python installation (eg C:\\Programas\\Python25\\tcl\\winico0.6\\ . Note: a lot of files inside, demo.tcl , pkgIndex.tcl , Winico06.dll ).
  3. Download this program , extract it and execute TrayIcon.py (maybe with a smiley.ico in the same folder).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM