小编Bra*_*ley的帖子

有没有办法禁用 win10toast python 库上的通知声音?

我正在使用 win10toast 为 Windows 制作通知弹出窗口。有什么办法可以让通知静音吗?换句话说,我可以禁用我正在创建的通知的声音吗?我可以更改声音吗?

编辑:添加示例代码

我的示例代码:

from win10toast import ToastNotifier


toaster = ToastNotifier()
for i in range(0,70000000):
    pass
toaster.show_toast("Hey User",
                   "The program is running pretty well. You should try to disable audio on me next though!",
                   icon_path=None,
                   duration=5)
Run Code Online (Sandbox Code Playgroud)

python audio notifications toast windows-10

3
推荐指数
1
解决办法
1819
查看次数

标签 统计

audio ×1

notifications ×1

python ×1

toast ×1

windows-10 ×1