简体   繁体   English

Python 在 win10toast 中更改 app_name

[英]Python change app_name in win10toast

Recently i tried to make a toast notification i used the package win10toast .最近,我尝试使用 package win10toast发出祝酒通知。

Then i couldn't get rid of the "Python" app name at the top.然后我无法摆脱顶部的“Python”应用程序名称。 If i compile it to an exe it says "yourapp.exe" is there a way to change that this is my code:如果我将其编译为 exe,它会显示“yourapp.exe”,是否有办法更改这是我的代码:

from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Test","Test",duration=10)

Here is a screenshot of how it looks:这是它的外观截图:

在此处输入图像描述

I hope it is possible because i saw a application written in python that had the website url at the top.我希望这是可能的,因为我看到了一个用 python 编写的应用程序,顶部有网站 url。 If there is no way to do that in win10toast is there a other library that can do that?如果在win10toast中没有办法做到这一点,是否有其他库可以做到这一点?

Would be amazing if someone could help me <3如果有人可以帮助我,那就太棒了<3

I know I'm a little bit late and you've probably already moved on in your life, but I do know of a new module.我知道我有点晚了,你可能已经在你的生活中继续前进,但我知道一个新模块。 My own!我自己的! ( Win10Toast ) Unfortunately I haven't added capability to change the name, however you can use the updated version of Microsoft Toasts. ( Win10Toast ) 不幸的是,我没有添加更改名称的功能,但是您可以使用 Microsoft Toasts 的更新版本。 It also allows you to put buttons on.它还允许您打开按钮。 You can check out Microsoft's page to see what can go in the XML and this StackOverflow page for how to use that XML in Python with the WinRT module. You can check out Microsoft's page to see what can go in the XML and this StackOverflow page for how to use that XML in Python with the WinRT module.

I am planning on updating Win10Toast to use the WinRT module, but haven't gotten around to it yet.我计划更新 Win10Toast 以使用 WinRT 模块,但还没有开始。

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

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