简体   繁体   English

Windows服务-通知

[英]Windows Service - notification

I am writting a Python Windows-service, that downloads some files and stores them in folder chosen by user. 我正在编写Python Windows服务,该服务下载一些文件并将其存储在用户选择的文件夹中。 The problem is that I want to inform user about new download completition, preferably with notification from here: https://gist.github.com/wontoncc/1808234 问题是我想通知用户有关新的下载完成的信息,最好是从此处发出通知: https : //gist.github.com/wontoncc/1808234

But somehow it doesn't work... End with error: 但是以某种方式不起作用...以错误结尾:

(0, 'Shell_NotifyIcon', 'No error message is available')

Windows service hasn't interaction with the desktop. Windows服务未与桌面交互。 Therefore you can't do it directly. 因此,您不能直接这样做。 You can create some other windows application that will communicate with the service and provide you the UX. 您可以创建其他一些Windows应用程序,以与服务进行通信并为您提供UX。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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