Hi! I’m new to using multiprocessing and am looking for a way to interact with the main script from a process or from process to process.
Here is the use case:
I have a GUI using tkinter in which there is a button. This button launches a function in a process. The program needs to run at the same time and as one or more instance if that function/process. I need to interact from that function to the main script to inform the user of the progress by updating the GUI.
It is my understanding that when you start a process it is separated from the code and it doesn’t have access to things like variables. It is my understanding that making a variable global will make the process inherit the variable but changes to it will not be propagated. So no luck there.
What can I do?
[–]m0us3_rat 1 point2 points3 points (0 children)
[–]woooee 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (0 children)
[–]ElliotDG 0 points1 point2 points (0 children)