Open JDogg1329 opened 5 years ago
duration = None
I tried duration = None and whilst a notification appeared, I also got an error saying duration must be int and not NoneType.
I tried this:
In the file .\win10toast__init__.py", line 112
if duration: sleep(duration) DestroyWindow(self.hwnd) UnregisterClass(self.wc.lpszClassName, None) return None
If you add the line if duration:
and indent everything, then it works.
Edit: don't know why I can't have the code on multiple lines...
Is this possible? I've tried duration = 0 but that seems to close it after a little while anyway (I'm using threaded notifications if that makes a difference)
Basically I want "high priority" toasts to stack and stay around until the user manually acknowledges them