Running multiple Kivy apps at same time that communicate with each other

前端 未结 3 1196
梦谈多话
梦谈多话 2020-12-15 12:45

I would like my Kivy application to be able to spawn multiple apps (i.e. new windows) on a Windows machine that can communicate with each other.

ScreenManager and Po

3条回答
  •  天涯浪人
    2020-12-15 13:31

    I'm not sure why it doesn't work with multiprocessing (I've never tried it), but it should at least work with subprocess. The reason your main window is locked is because subprocess.call blocks the thread that calls it while it waits for the subprocess to finish and return a result.

    You want to use subprocess.Popen instead, which does not block.

提交回复
热议问题