为什么plyer通知系统中的窗口标题不起作用

问题描述 投票:0回答:1

我已经实现了以下代码:

from plyer import notification


def createNotification(title, message):
    notification.notify(
        title=title,
        message=message,
        app_name="The_Debugged_Name",
        app_icon="pictures/main_icon.ico",
        timeout=2
    )


createNotification("Greeting Message", "Hello World")

实现的主要问题是我收到的通知是带有消息 python 和图标的,即不是作为标题,而是作为通知上的小窗口标题。

python python-3.x notifications python-module
1个回答
0
投票

在 plyer 中你只是...不能 - 因为这个。但您可以切换到 win11toast 并执行类似 this 的操作。

© www.soinside.com 2019 - 2024. All rights reserved.