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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

.show_toast() breaks PySimpleGUI and PyMsgBox #110

Open
JanChec opened this issue Aug 26, 2022 · 0 comments
Open

.show_toast() breaks PySimpleGUI and PyMsgBox #110

JanChec opened this issue Aug 26, 2022 · 0 comments

Comments

@JanChec
Copy link

JanChec commented Aug 26, 2022

Hey! 馃檪

I'm trying to use Windows 10 Toast Notifications for notifications while I have simple interactions with the user by opening new windows when necessary. Unfortunately when I do:

toast = win10toast.ToastNotifier()
toast.show_toast(
    "Title",
    "some explanation",
    duration=2,
    threaded=False,  # this WORKS for True
)

import pymsgbox
pymsgbox.confirm('PyMsgBox', 'window')  # <- this doesn't even appear

Similarly for PySimpleGUI, but in this case, it freezes after partially rendering the window. Both PySimpleGUI and PyMsgBox can work at the same time.

My guess is that it locks something that the other libraries are trying to use. I think it's worth at least documenting the usage of threaded=True as a workaround to the problem.

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

1 participant