[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-09-29 Thread Thomas Holder
Thomas Holder added the comment: All good, thanks for opening PR 22453! I'll close my old PR. -- ___ Python tracker <https://bugs.python.org/issue40075> ___ ___

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-09-29 Thread Thomas Holder
Thomas Holder added the comment: I finally managed to test tstate_acquire.diff and it works perfectly! Should I close my pull request? Or update it with your patch? -- ___ Python tracker <https://bugs.python.org/issue40

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-07-30 Thread Thomas Holder
Thomas Holder added the comment: Attaching an even simpler example which doesn't use PyQt. It shows a native Windows dialog using ctypes. I could not reproduce the crash without showing any non-tk dialog. Steve's explanation sounds plausible. -- Added file: https://bugs.python.org

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-03-26 Thread Thomas Holder
Change by Thomas Holder : -- keywords: +patch pull_requests: +18538 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19178 ___ Python tracker <https://bugs.python.org/issu

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-03-26 Thread Thomas Holder
New submission from Thomas Holder : The attached demo application runs a Tkinter GUI and a PyQt GUI in the same thread. PyQt owns the main loop and keeps updating the Tkinter instance by calling `update()`. On Windows, when binding a "" event, resizing the Tk window will lead