How it works...
In this recipe, we have successfully combined the two GUIs we created in a similar fashion, but which were previously standalone and not talking to each other. However, in this recipe, we connected them further by making one GUI launch another, and, via a simple multiprocessing Python queue mechanism, we were able to make them communicate with each other, writing data from a shared queue into both GUIs.
There are many more advanced and complicated technologies available to connect different processes, threads, pools, locks, pipes, TCP/IP connections, and so on.
In the Pythonic spirit, we found a simple solution that works for us. Once our code becomes more complicated, we might have to refactor it, but this is a good beginning. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access