win10toast库(python)映像:图标(0,';LoadImage';,';无可用错误消息';)出现一些问题
好吧,正如它听起来的那样,通知的图像没有显示出来 我尝试过的事情:win10toast库(python)映像:图标(0,';LoadImage';,';无可用错误消息';)出现一些问题,python,Python,好吧,正如它听起来的那样,通知的图像没有显示出来 我尝试过的事情: 将图像转换为png 将图像转换为jpeg格式 将图像转换为ico 到目前为止,这些都是我看到的解决方案,没有一个对我有效 这是我的密码: from win10toast import ToastNotifier import time # One-time initialization toaster = ToastNotifier() path = "logo.ico" # Show notifica
from win10toast import ToastNotifier
import time
# One-time initialization
toaster = ToastNotifier()
path = "logo.ico"
# Show notification whenever needed
toaster.show_toast("python", "heres a neat test", threaded=True,
icon_path=path, duration=10)
while toaster.notification_active():
time.sleep(0.1)
您应该尝试使用绝对路径。当使用相对路径时,会涉及一些变量。谢谢,我会尝试一下:)不,没有,同样的错误会弹出。