Skip to content

How to get the window object from another thread #1147

Closed Answered by r0x0r
xpierroz asked this question in Q&A
Discussion options

You must be logged in to vote

You are confusing threads with processes. Getting a window in a multi-threaded environment should not be a problem, but sharing data between processes is rather tricky. The error you get means that window object cannot be pickled as required by multiprocessing. You may have luck with an alternative pickling library like dill, see https://stackoverflow.com/questions/19984152/what-can-multiprocessing-and-dill-do-together for details. I have not tested any of this, but from my experience with passing data in a multiprocessing environment in Python is rather painful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xpierroz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants