Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a valid ICO but it wont load #82

Open
evanAndersonDigipen opened this issue Oct 9, 2020 · 6 comments
Open

I have a valid ICO but it wont load #82

evanAndersonDigipen opened this issue Oct 9, 2020 · 6 comments

Comments

@evanAndersonDigipen
Copy link

ERROR:root:Some trouble with the icon (E:\SilverAlerts\icon.ico): (0, 'LoadImage', 'No error message is available')
As stated above, that is the error message i get
toaster.show_toast("No Mans Sky", "Silver Deposit Ready", icon_path=r"icon.ico")
Thats the line

@ostap-tymchenko
Copy link

same - did you find a solution?

@CURVX
Copy link

CURVX commented Dec 17, 2020

Mine is inside assets folder, not in root, so my path is assets\notify.ico

Here is the code snippet:

def notify(title, msg):
    toaster = ToastNotifier()
    toaster.show_toast(title,
                       msg,
                       icon_path='assets/notify.ico',
                       duration=2,
                       threaded=True
                       )

Hope this helped!

@ostap-tymchenko
Copy link

this doesn't work for me :( here's what i get :

ERROR:root:Some trouble with the icon (C:\Users\osty2\Documents\python\pyproj\mains\doing\atendance-app\notification-test\assets\1.ico): (0, 'LoadImage', 'No error message is available')

@CURVX
Copy link

CURVX commented Jan 5, 2021

Could you share the code in here or in pastebin or the link to your github repo if it's public? ☺️

@ostap-tymchenko
Copy link

ostap-tymchenko commented Jan 8, 2021

from win10toast import ToastNotifier

def notify(title, msg):
    toaster = ToastNotifier()
    toaster.show_toast(title, msg, icon_path='assets/1.ico', duration=2, threaded=True)

notify(title='hi',msg='msg')

@Stevesuk0
Copy link

import win10toast
toast = win10toast.ToastNotifier()
toast.show_toast("BiliBili Live Danmaku Notify", "test", "test.ico")```

Error:
```ERROR:root:Some trouble with the icon (D:\home\Desktop\wg\temp.ico): (0, 'LoadImage', 'No error message is available')
WNDPROC return value cannot be converted to LRESULT
TypeError: WPARAM is simple, so must be an int object (got NoneType)```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants