Comments (6)
Hi @studiozeroseven thank you for raising the issue.
I will look look into this and revert back.
from windows-10-toast-notifications.
@studiozeroseven Apologies for the delay I was caught up in work.
Please confirm if you still facing the issue and need help.
I'm not able to recreate this in my Python 3.5 environment. If you need help, could you please provide the PyQt version you are using and also the imports.
from windows-10-toast-notifications.
Hi, I'm getting the same thing. PyQt5 is latest version from pip, on python3.
Imports look as follows:
from PyQt5 import QtGui, QtCore, QtWidgets
import sys, os, shelve, time, threading, random, operator, copy, datetime, os, collections
from operator import attrgetter, itemgetter
from random import randint
from win10toast import ToastNotifier
from playsound import playsound
from windows-10-toast-notifications.
Hi guys,
I've sourced the issue in line 136 init.py in the library. Disabling PostQuitMessage(0) seems to fix the issue. I'm not sure of how this will affect the usage. If you have any experience in this please give your suggestion. I'll be investigating this further before pushing a change.
from windows-10-toast-notifications.
Heyo. Commenting out that line seemed to fix the crashing. The sleep(duration) a few lines before that hangs the program for a few seconds so I commented that out also.
from windows-10-toast-notifications.
Just want to add my 2 cents. I'm using PySide2 (which is basically PyQt5, so what I say should apply to PyQt5), and I was getting this problem as well with it crashing the app. Using multithreaded option works perfectly.
Please verify this. The issue should be fixed already.
Use threaded = True
to fix the issue
--
Probably the issue here is that this module doesn't interface with the Qt event loop. @author, you might be able to fix this blocking issue by periodically taking breaks in a loop (that ultimately waits the entire 5 seconds, or however long) to call QApplication.processEvents()
.
--
But there's no need to try to make it Qt compatible. The correct way this should be done is by using another thread, and this is already the case. So this issue is now solved
from windows-10-toast-notifications.
Related Issues (20)
- Does this still work with Windows 11? HOT 4
- Toast-Notifications do not appear while chrome is on full screen mode. HOT 1
- How do I change the author of a notification?
- Cannot install pypiwin32 dependency on Linux HOT 1
- .show_toast() breaks PySimpleGUI and PyMsgBox
- Error in Python 3.11 HOT 16
- Maintain Notification
- Cannot install this module on python 3.12.0a2 HOT 3
- ERROR + FIX: WNDPROC return value cannot be converted to LRESULT TypeError: WPARAM is simple, so must be an int object (got NoneType)
- Is it possible to change the sound effect used, or silence it?
- Error when explorer.exe is not working
- Exception: 'ToastNotifier' object has no attribute 'classAtom'
- arabic text
- Arabic text HOT 1
- I have a valid ICO but it wont load HOT 6
- Keep notification after excecution HOT 4
- Tkinter crash after use Toast HOT 2
- Windows 10 - Toasts stopped working HOT 8
- win10toast Breaks with pyinstaller
- Notification closing other python-based systray applications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-10-toast-notifications.