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

Fix threading in calling PyOS_InputHook from new REPL #80

Open
wants to merge 2 commits into
base: gh-119842
Choose a base branch
from

Conversation

mdboom
Copy link

@mdboom mdboom commented May 31, 2024

Just a proof-of-concept for what seems to make this work.

Since the PyOS_InputHook implementation in Tkinter sets the thread state, we need to allow threads around calling it. I'm not sure that's possible directly from Python (maybe it is), so I just added a C function to handle this. This seems to make things work correctly, at least for matplotlib and the Tkinter reproducer here.

I'm not sure the new function is in the right file.

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

Successfully merging this pull request may close these issues.

2 participants